Total amount

Calculating the total amount in the service.
Made the total directive