Calculation of Balance after a Certain Period