WPS Spreadsheet Formula for 45 Days After Month-End
Question details
The user needs a spreadsheet formula that returns the date 45 days after the end of the month containing a given invoice or reference date.
- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- An invoice or reference date is stored in a worksheet cell, and the user wants to calculate a future date based on that month’s final day.
- Observed behavior
- The required month-end-plus-45-days calculation has not yet been set up in the worksheet.
Confirm that the source cell contains a valid date, such as an invoice date in D2. Select an empty result cell and ensure it is available for date formatting.
Use EOMONTH to calculate 45 days after the month ends
Use this formula when the source date is in D2 and the result should be based on the final day of that date’s month.
EOMONTH(D2,0) returns the last day of the month containing the date in D2. Adding 45 to that result produces the date 45 days later.
In WPS Spreadsheets, click the empty cell where you want the calculated date to appear, such as E2.
Type =EOMONTH(D2,0)+45 in the selected cell, then press Enter.
Select the result cell, open the Home tab, choose the Number Format menu, and select a Date format.
Calculate Month-End Dates Easily in WPS Spreadsheets
WPS Spreadsheets can calculate the date 45 days after a month ends with the Excel-compatible EOMONTH formula. Enter the formula, format the result as a date, and continue working in a familiar spreadsheet interface.
- 1. Open a spreadsheet: Launch WPS Office and open an existing workbook or select New Spreadsheet.
- 2. Enter the reference date: Place the invoice or reference date in a cell such as D2.
- 3. Add the month-end formula: Select the result cell and enter =EOMONTH(D2,0)+45, then press Enter.
- 4. Format the output: On the Home tab, open Number Format and choose Date to display the calculated value correctly.

Frequently Asked Questions
What formula calculates 45 days after the end of a month in WPS Spreadsheets?
If the source date is in D2, enter =EOMONTH(D2,0)+45 in another cell. EOMONTH finds the final day of the source date’s month, and +45 adds 45 days.
Where should I enter the EOMONTH formula?
Enter it in an empty result cell, such as E2, while the invoice or reference date remains in D2. Adjust the cell reference if your date is stored elsewhere.
Why does my result display as a number instead of a date?
Spreadsheet dates are stored as serial numbers. Select the formula cell, go to Home, open Number Format, and choose Date.
Does EOMONTH use the end of the current month or the next month?
EOMONTH(D2,0) returns the end of the month containing the date in D2. The zero means no month offset; use 1 for the end of the following month.




