Spreadsheet: 717674d1612797900-recurring-dates-expressed-as-a-fraction-of-a-month-example-book1
Sheet: Sheet1

 | Example 1 Start Date 31st |  |  |  |  |  |  |  | Example 2 Start Date 30th
start Date | End Date | Count of days until Month's end | Days until next month | Expected Result | FlameRetired's Formula |  |  | start Date | End Date | Count of days until Month's end | Days until next month | Expected | Expected Result
2020-12-31 00:00:00 | 2021-01-31 00:00:00 | 1 | 29 |  |  |  |  | 2020-12-30 00:00:00 | 2021-01-30 00:00:00 | 1 | 30
 | 2021-02-01 00:00:00 | 2 | 29 |  |  |  |  |  | 2021-01-31 00:00:00 | 2 | 30
 | 2021-02-02 00:00:00 | 3 | 29 |  |  |  |  |  | 2021-02-01 00:00:00 | 3 | 30
 | 2021-02-03 00:00:00 | 4 | 29 |  |  |  |  |  | 2021-02-02 00:00:00 | 4 | 30
 | 2021-02-04 00:00:00 | 5 | 29 |  |  |  |  |  | 2021-02-03 00:00:00 | 5 | 30
 | 2021-02-05 00:00:00 | 6 | 29 |  |  |  |  |  | 2021-02-04 00:00:00 | 6 | 30
 | 2021-02-06 00:00:00 | 7 | 29 |  |  |  |  |  | 2021-02-05 00:00:00 | 7 | 30
 | 2021-02-07 00:00:00 | 8 | 29 |  |  |  |  |  | 2021-02-06 00:00:00 | 8 | 30
 | 2021-02-08 00:00:00 | 9 | 29 |  |  |  |  |  | 2021-02-07 00:00:00 | 9 | 30
 | 2021-02-09 00:00:00 | 10 | 29 |  |  |  |  |  | 2021-02-08 00:00:00 | 10 | 30
 | 2021-02-10 00:00:00 | 11 | 29 |  |  |  |  |  | 2021-02-09 00:00:00 | 11 | 30
 | 2021-02-11 00:00:00 | 12 | 29 |  |  |  |  |  | 2021-02-10 00:00:00 | 12 | 30
 | 2021-02-12 00:00:00 | 13 | 29 |  |  |  |  |  | 2021-02-11 00:00:00 | 13 | 30
 | 2021-02-13 00:00:00 | 14 | 29 |  |  |  |  |  | 2021-02-12 00:00:00 | 14 | 30
 | 2021-02-14 00:00:00 | 15 | 29 |  |  |  |  |  | 2021-02-13 00:00:00 | 15 | 30
 | 2021-02-15 00:00:00 | 16 | 29 |  |  |  |  |  | 2021-02-14 00:00:00 | 16 | 30
 | 2021-02-16 00:00:00 | 17 | 29 |  |  |  |  |  | 2021-02-15 00:00:00 | 17 | 30
 | 2021-02-17 00:00:00 | 18 | 29 |  |  |  |  |  | 2021-02-16 00:00:00 | 18 | 30
 | 2021-02-18 00:00:00 | 19 | 29 |  |  |  |  |  | 2021-02-17 00:00:00 | 19 | 30
 | 2021-02-19 00:00:00 | 20 | 29 |  |  |  |  |  | 2021-02-18 00:00:00 | 20 | 30
 | 2021-02-20 00:00:00 | 21 | 29 |  |  |  |  |  | 2021-02-19 00:00:00 | 21 | 30
 | 2021-02-21 00:00:00 | 22 | 29 |  |  |  |  |  | 2021-02-20 00:00:00 | 22 | 30
 | 2021-02-22 00:00:00 | 23 | 29 |  |  |  |  |  | 2021-02-21 00:00:00 | 23 | 30
 | 2021-02-23 00:00:00 | 24 | 29 |  |  |  |  |  | 2021-02-22 00:00:00 | 24 | 30
 | 2021-02-24 00:00:00 | 25 | 29 |  |  |  |  |  | 2021-02-23 00:00:00 | 25 | 30
 | 2021-02-25 00:00:00 | 26 | 29 |  |  |  |  |  | 2021-02-24 00:00:00 | 26 | 30
 | 2021-02-26 00:00:00 | 27 | 29 |  |  |  |  |  | 2021-02-25 00:00:00 | 27 | 30
 | 2021-02-27 00:00:00 | 28 | 29 |  |  |  |  |  | 2021-02-26 00:00:00 | 28 | 30
 | 2021-02-28 00:00:00 | 29 | 29 |  |  |  |  |  | 2021-02-27 00:00:00 | 29 | 30
 | 2021-03-01 00:00:00 | 1 | 30 |  |  |  |  |  | 2021-02-28 00:00:00 | 30 | 30
 | 2021-03-02 00:00:00 | 2 | 30 |  |  |  |  |  | 2021-03-01 00:00:00 | 1 | 29
 | 2021-03-03 00:00:00 | 3 | 30 |  |  |  |  |  | 2021-03-02 00:00:00 | 2 | 29
 | 2021-03-04 00:00:00 | 4 | 30 |  |  |  |  |  | 2021-03-03 00:00:00 | 3 | 29
 | 2021-03-05 00:00:00 | 5 | 30 |  |  |  |  |  | 2021-03-04 00:00:00 | 4 | 29
 | 2021-03-06 00:00:00 | 6 | 30 |  |  |  |  |  | 2021-03-05 00:00:00 | 5 | 29
 | 2021-03-07 00:00:00 | 7 | 30 |  |  |  |  |  | 2021-03-06 00:00:00 | 6 | 29
 | 2021-03-08 00:00:00 | 8 | 30 |  |  |  |  |  | 2021-03-07 00:00:00 | 7 | 29
 | 2021-03-09 00:00:00 | 9 | 30 |  |  |  |  |  | 2021-03-08 00:00:00 | 8 | 29
 | 2021-03-10 00:00:00 | 10 | 30 |  |  |  |  |  | 2021-03-09 00:00:00 | 9 | 29
 | 2021-03-11 00:00:00 | 11 | 30 |  |  |  |  |  | 2021-03-10 00:00:00 | 10 | 29
 | 2021-03-12 00:00:00 | 12 | 30 |  |  |  |  |  | 2021-03-11 00:00:00 | 11 | 29
 | 2021-03-13 00:00:00 | 13 | 30 |  |  |  |  |  | 2021-03-12 00:00:00 | 12 | 29
 | 2021-03-14 00:00:00 | 14 | 30 |  |  |  |  |  | 2021-03-13 00:00:00 | 13 | 29
 | 2021-03-15 00:00:00 | 15 | 30 |  |  |  |  |  | 2021-03-14 00:00:00 | 14 | 29
 | 2021-03-16 00:00:00 | 16 | 30 |  |  |  |  |  | 2021-03-15 00:00:00 | 15 | 29
 | 2021-03-17 00:00:00 | 17 | 30 |  |  |  |  |  | 2021-03-16 00:00:00 | 16 | 29
 | 2021-03-18 00:00:00 | 18 | 30 |  |  |  |  |  | 2021-03-17 00:00:00 | 17 | 29
 | 2021-03-19 00:00:00 | 19 | 30 |  |  |  |  |  | 2021-03-18 00:00:00 | 18 | 29
 | 2021-03-20 00:00:00 | 20 | 30 |  |  |  |  |  | 2021-03-19 00:00:00 | 19 | 29
 | 2021-03-21 00:00:00 | 21 | 30 |  |  |  |  |  | 2021-03-20 00:00:00 | 20 | 29
 | 2021-03-22 00:00:00 | 22 | 30 |  |  |  |  |  | 2021-03-21 00:00:00 | 21 | 29
 | 2021-03-23 00:00:00 | 23 | 30 |  |  |  |  |  | 2021-03-22 00:00:00 | 22 | 29
 | 2021-03-24 00:00:00 | 24 | 30 |  |  |  |  |  | 2021-03-23 00:00:00 | 23 | 29
 | 2021-03-25 00:00:00 | 25 | 30 |  |  |  |  |  | 2021-03-24 00:00:00 | 24 | 29
 | 2021-03-26 00:00:00 | 26 | 30 |  |  |  |  |  | 2021-03-25 00:00:00 | 25 | 29
 | 2021-03-27 00:00:00 | 27 | 30 |  |  |  |  |  | 2021-03-26 00:00:00 | 26 | 29
 | 2021-03-28 00:00:00 | 28 | 30 |  |  |  |  |  | 2021-03-27 00:00:00 | 27 | 29
 | 2021-03-29 00:00:00 | 29 | 30 |  |  |  |  |  | 2021-03-28 00:00:00 | 28 | 29
 | 2021-03-30 00:00:00 | 30 | 30 |  |  |  |  |  | 2021-03-29 00:00:00 | 29 | 29
 | 2021-03-31 00:00:00 | 1 | 31 |  |  |  |  |  | 2021-03-30 00:00:00 | 1 | 31
 | 2021-04-01 00:00:00 | 2 | 31 |  |  |  |  |  | 2021-03-31 00:00:00 | 2 | 31
 | 2021-04-02 00:00:00 | 3 | 31 |  |  |  |  |  | 2021-04-01 00:00:00 | 3 | 31
 | 2021-04-03 00:00:00 | 4 | 31 |  |  |  |  |  | 2021-04-02 00:00:00 | 4 | 31
 | 2021-04-04 00:00:00 | 5 | 31 |  |  |  |  |  | 2021-04-03 00:00:00 | 5 | 31
 | 2021-04-05 00:00:00 | 6 | 31 |  |  |  |  |  | 2021-04-04 00:00:00 | 6 | 31
 | 2021-04-06 00:00:00 | 7 | 31 |  |  |  |  |  | 2021-04-05 00:00:00 | 7 | 31
 | 2021-04-07 00:00:00 | 8 | 31 |  |  |  |  |  | 2021-04-06 00:00:00 | 8 | 31
 | 2021-04-08 00:00:00 | 9 | 31 |  |  |  |  |  | 2021-04-07 00:00:00 | 9 | 31
 | 2021-04-09 00:00:00 | 10 | 31 |  |  |  |  |  | 2021-04-08 00:00:00 | 10 | 31
 | 2021-04-10 00:00:00 | 11 | 31 |  |  |  |  |  | 2021-04-09 00:00:00 | 11 | 31
 | 2021-04-11 00:00:00 | 12 | 31 |  |  |  |  |  | 2021-04-10 00:00:00 | 12 | 31
 | 2021-04-12 00:00:00 | 13 | 31 |  |  |  |  |  | 2021-04-11 00:00:00 | 13 | 31
 | 2021-04-13 00:00:00 | 14 | 31 |  |  |  |  |  | 2021-04-12 00:00:00 | 14 | 31
 | 2021-04-14 00:00:00 | 15 | 31 |  |  |  |  |  | 2021-04-13 00:00:00 | 15 | 31
 | 2021-04-15 00:00:00 | 16 | 31 |  |  |  |  |  | 2021-04-14 00:00:00 | 16 | 31
 | 2021-04-16 00:00:00 | 17 | 31 |  |  |  |  |  | 2021-04-15 00:00:00 | 17 | 31
 | 2021-04-17 00:00:00 | 18 | 31 |  |  |  |  |  | 2021-04-16 00:00:00 | 18 | 31
 | 2021-04-18 00:00:00 | 19 | 31 |  |  |  |  |  | 2021-04-17 00:00:00 | 19 | 31
 | 2021-04-19 00:00:00 | 20 | 31 |  |  |  |  |  | 2021-04-18 00:00:00 | 20 | 31
 | 2021-04-20 00:00:00 | 21 | 31 |  |  |  |  |  | 2021-04-19 00:00:00 | 21 | 31
 | 2021-04-21 00:00:00 | 22 | 31 |  |  |  |  |  | 2021-04-20 00:00:00 | 22 | 31
 | 2021-04-22 00:00:00 | 23 | 31 |  |  |  |  |  | 2021-04-21 00:00:00 | 23 | 31
 | 2021-04-23 00:00:00 | 24 | 31 |  |  |  |  |  | 2021-04-22 00:00:00 | 24 | 31
 | 2021-04-24 00:00:00 | 25 | 31 |  |  |  |  |  | 2021-04-23 00:00:00 | 25 | 31
 | 2021-04-25 00:00:00 | 26 | 31 |  |  |  |  |  | 2021-04-24 00:00:00 | 26 | 31
 | 2021-04-26 00:00:00 | 27 | 31 |  |  |  |  |  | 2021-04-25 00:00:00 | 27 | 31
 | 2021-04-27 00:00:00 | 28 | 31 |  |  |  |  |  | 2021-04-26 00:00:00 | 28 | 31
 | 2021-04-28 00:00:00 | 29 | 31 |  |  |  |  |  | 2021-04-27 00:00:00 | 29 | 31
 | 2021-04-29 00:00:00 | 30 | 31 |  |  |  |  |  | 2021-04-28 00:00:00 | 30 | 31
 | 2021-04-30 00:00:00 | 31 | 31 |  |  |  |  |  | 2021-04-29 00:00:00 | 31 | 31
 | 2021-05-01 00:00:00 | 1 | 31 |  |  |  |  |  | 2021-04-30 00:00:00 | 1 | 30
 | 2021-05-02 00:00:00 | 2 | 31 |  |  |  |  |  | 2021-05-01 00:00:00 | 2 | 30
 | 2021-05-03 00:00:00 | 3 | 31 |  |  |  |  |  | 2021-05-02 00:00:00 | 3 | 30
 | 2021-05-04 00:00:00 | 4 | 31 |  |  |  |  |  | 2021-05-03 00:00:00 | 4 | 30
 | 2021-05-05 00:00:00 | 5 | 31 |  |  |  |  |  | 2021-05-04 00:00:00 | 5 | 30
 | 2021-05-06 00:00:00 | 6 | 31 |  |  |  |  |  | 2021-05-05 00:00:00 | 6 | 30
 | 2021-05-07 00:00:00 | 7 | 31 |  |  |  |  |  | 2021-05-06 00:00:00 | 7 | 30
 | 2021-05-08 00:00:00 | 8 | 31 |  |  |  |  |  | 2021-05-07 00:00:00 | 8 | 30
 | 2021-05-09 00:00:00 | 9 | 31 |  |  |  |  |  | 2021-05-08 00:00:00 | 9 | 30
 | 2021-05-10 00:00:00 | 10 | 31 |  |  |  |  |  | 2021-05-09 00:00:00 | 10 | 30
 | 2021-05-11 00:00:00 | 11 | 31 |  |  |  |  |  | 2021-05-10 00:00:00 | 11 | 30
 | 2021-05-12 00:00:00 | 12 | 31 |  |  |  |  |  | 2021-05-11 00:00:00 | 12 | 30
 | 2021-05-13 00:00:00 | 13 | 31 |  |  |  |  |  | 2021-05-12 00:00:00 | 13 | 30
 | 2021-05-14 00:00:00 | 14 | 31 |  |  |  |  |  | 2021-05-13 00:00:00 | 14 | 30
 | 2021-05-15 00:00:00 | 15 | 31 |  |  |  |  |  | 2021-05-14 00:00:00 | 15 | 30
 | 2021-05-16 00:00:00 | 16 | 31 |  |  |  |  |  | 2021-05-15 00:00:00 | 16 | 30
 | 2021-05-17 00:00:00 | 17 | 31 |  |  |  |  |  | 2021-05-16 00:00:00 | 17 | 30
 | 2021-05-18 00:00:00 | 18 | 31 |  |  |  |  |  | 2021-05-17 00:00:00 | 18 | 30
 | 2021-05-19 00:00:00 | 19 | 31 |  |  |  |  |  | 2021-05-18 00:00:00 | 19 | 30
 | 2021-05-20 00:00:00 | 20 | 31 |  |  |  |  |  | 2021-05-19 00:00:00 | 20 | 30
 | 2021-05-21 00:00:00 | 21 | 31 |  |  |  |  |  | 2021-05-20 00:00:00 | 21 | 30
 | 2021-05-22 00:00:00 | 22 | 31 |  |  |  |  |  | 2021-05-21 00:00:00 | 22 | 30
 | 2021-05-23 00:00:00 | 23 | 31 |  |  |  |  |  | 2021-05-22 00:00:00 | 23 | 30
 | 2021-05-24 00:00:00 | 24 | 31 |  |  |  |  |  | 2021-05-23 00:00:00 | 24 | 30
 | 2021-05-25 00:00:00 | 25 | 31 |  |  |  |  |  | 2021-05-24 00:00:00 | 25 | 30
 | 2021-05-26 00:00:00 | 26 | 31 |  |  |  |  |  | 2021-05-25 00:00:00 | 26 | 30
 | 2021-05-27 00:00:00 | 27 | 31 |  |  |  |  |  | 2021-05-26 00:00:00 | 27 | 30
 | 2021-05-28 00:00:00 | 28 | 31 |  |  |  |  |  | 2021-05-27 00:00:00 | 28 | 30
 | 2021-05-29 00:00:00 | 29 | 31 |  |  |  |  |  | 2021-05-28 00:00:00 | 29 | 30
 | 2021-05-30 00:00:00 | 30 | 31 |  |  |  |  |  | 2021-05-29 00:00:00 | 30 | 30
 | 2021-05-31 00:00:00 | 31 | 31 |  |  |  |  |  | 2021-05-30 00:00:00 | 1