now calculating total paid, whther used or not