Hi @Remster ,
Thank you for posting in this community.
In SharePoint list calculated column settings, the formula you are using includes an unrecommended Unit md, which will ignore difference in month:
Using another calculation method:
1.Create a calculated column named "test date", which is the last day of the last full month, calculated as:
=DATE(YEAR(Date_2),MONTH(Date_2),0)
2.Create another calculated column named "CALDAY" , align the number of days calculated by SharePoint with Excel. Calculated as:
=IF(DAY(Date_2)<DAY(Date_1),((DATEDIF(Date_1,[test date],"MD")+1)+(Date_2-(DATE(YEAR(Date_2),MONTH(Date_2),1)))),DATEDIF(Date_1,Date_2,"MD"))
Result:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.