File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,8 @@ def amortization_schedule(
104104
105105 if print_annual_summary :
106106 print (
107- (
108- f"{ 'Year' :<6} { 'Months Pd' :<12} { 'Tenure Left' :<13} "
109- f"{ 'Payment/Period' :<16} { 'Outstanding' :<14} "
110- )
107+ f"{ 'Year' :<6} { 'Months Pd' :<12} { 'Tenure Left' :<13} "
108+ f"{ 'Payment/Period' :<16} { 'Outstanding' :<14} "
111109 )
112110
113111 for period in range (1 , n + 1 ):
@@ -142,10 +140,8 @@ def amortization_schedule(
142140 if print_annual_summary and (months_elapsed % 12 == 0 or balance <= eps ):
143141 tenure_left = n - period
144142 print (
145- (
146- f"{ months_elapsed // 12 :<6} { months_elapsed :<12} { tenure_left :<13} "
147- f"{ pmt :<16.2f} { balance :<14.2f} "
148- )
143+ f"{ months_elapsed // 12 :<6} { months_elapsed :<12} { tenure_left :<13} "
144+ f"{ pmt :<16.2f} { balance :<14.2f} "
149145 )
150146
151147 if balance <= eps :
You can’t perform that action at this time.
0 commit comments