JS - Calculate Date in Javascript
JavaScript Date Formats https://www.w3schools.com/js/js_date_formats.asp Subtract days from a date in JavaScript https://stackoverflow.com/a/1296398 Get difference between 2 dates in JavaScript? https://stackoverflow.com/q/3224834 Calculate week and get the day balance Convert int to whole number using floor() https://www.w3schools.com/jsref/jsref_floor.asp Get the balance using % https://stackoverflow.com/a/4228376 How to calculate the number of days between two dates in javascript? https://www.geeksforgeeks.org/how-to-calculate-the-number-of-days-between-two-dates-in-javascript/