User input: ———–

Enter your name: xx

Enter your starting annual salary: $30000

Enter your current savings: $20000

Enter your CPF OA amount: $50000

Enter the percentage of salary to save (%): 20

Enter the cost of your dream hdb flat: $300000

Enter the percentage of loan you are eligible (%): 40

For debugging only: ——————-

Loan amount: $120000.00

Outstanding amount: $110000.00

Cash per year: $6000.00

OA per year: $6900.00

Total savings per year: $12900.00

Number of years to save: 8.53

Computed output: —————-

Number of months: 102