Added calculation for payment