How to calculate a license end date based on start date, cancellation date and period (month/year).
For instance:
- a clients’ starts a user license on January 5, 2019 (start date),
- the license period is set to a month (period),
- on October 12, 2019, the client has let us know that he wants to end the license (cancellation date),
- Since the period is set to a month, the first possible end date should be November 4, 2019 (license end date)
How can we calculate the license end date based on start date, cancellation date and period (month/year)?