Source: Examle of using accomulation registers for calculating profit from sales and creating the respective profit report:
You can Download *.dt file to develop your own application:
1Cv8_Designing_Business_App_part6.dt
Also, you can study the instructions for developing this example from scratch using 1C:Enterprise platform.