Calculate How Long to Repay