Payment Period Calculation