Calculation of percentage spent and total amount charged