House Cost Calculator

Calculates prices of houses based on location and house type after adjustment to inflation.
The following table describes the parameters for House cost calculator:

NameData TypeTechnical DescriptionMandatorySample ValueList of possible valuesNo. of decimalsNotes 
downPaymentYearnumber The year during which the initial payment was made for buying the houseY2025, 2019, 2020> currentYear0User Input: User selects the year when they would like to make first payment for the house in the Front end.
countrystringCountry where the house is located YIndonesia, Singapore,MalaysiaUser input: input selected by the user in the Front End.
regionstringA region in the specific country where the house is locatedNWest Java, East JavaUser input:  input selected by the user in the Front End.
citystringCity in the specific country where the house is locatedNBandungUser input:  input selected by the user in the Front End.
location stringLocation in the specific city where the house is locatedNAng Mo Kio, BedokUser input:  input selected by the user in the Front End.
district stringDistrict in the specific city, country where the house is locatedN16, 20 User input:  input selected by the user in the Front End.
houseTypestringDescribes the type of housesNCondo, HDB, One Bed, TerracedUser input:  input selected by the user in the Front End.
roomTypestringDescribes the type of rooms/ number of roomsNExecutive, Two room, classSixUser input: input selected by the user in the Front End.
downPaymentPctnumberPercentage of down paymentY0.3, 0.20-16The Downpayment percentage is either user input or hardcoded based on the client's requirements
inflationRatenumberInflation Rate Y0.056Based on the long term inflation rate retrieved from the Country service of a specific country or by hardcoding in the Front End based on client requirement. endpoint - /v1/rate/:countryCode, field to use - inflation_rate_long_term
currentYearnumberThe Year to dateY20190System generated year to date

The following table describes the outputs for House cost calculator:

NameData TypeTechnical DescriptionSample ValueNo. of decimals
yearsToGoalNumberNumber of years it would take to accomplish the goal60
housecostInflationAdjNumberFuture adjusted cost of the house calculated as per country's inflation rate297781163.322
currencyStringCurrency in which the user buys the houseSGD, USD, IDR
downPaymentAmtNumberThe initial payment which was made for buying the house89334348.992
Language
Authorization
Bearer
Click Try It! to start a request and see the response here!