-
Notifications
You must be signed in to change notification settings - Fork 6
Description
This feature allows users to specify the date field by adding years instead of specifying number of days in a year. It also helps them to reduce cognitive work to compute the actual number of days in a year and add to the date input.
User query
The first type is to inform the user of the date when a timeframe has passed, e.g. checker on when a user's Seller's Stamp Duty holding period expires. I've attempted to create this but realised that the date logic requires me to manually input the no. of days to add to a user's input date. So for example, if a user says they purchased a house on 1 February 2021 and our logic says the SSD time period ends 1095 days (365 x 3) later, the result will be 30 January 2024. This manual input of days means that the date may not be accurate if a leap year comes by (since the input doesn’t include the extra day). May I know if there's a way to avoid this problem?
The second type of checker we wanted to create was to compare two dates. The context is that if a user obtained their In-Principal Approval letter for change of residency status from ICA after they had purchased a property, they would be subject to different Additional Buyer's Stamp Duty rates. By comparing the two dates, we would be able to inform the user which rate is applicable. May I know if there's currently a way to do this?