Hello,
I require to compare AD reports with HR reports every month for which I have created a repeatable workflow that takes the latest input from the respective folders and perform analysis to provide results of those employees who have been inactive for more than 30 days (Different between last logon date and the date when I perform the test i.e. 10th of every month).
In order to let the workflow automatically calculate the number of days in a given month, the following formula is created

This formula is working well if I use it for the data in the month of March, or when if I use it for April testing with April AD and HR reports (when they send that). However, if Today, I want to validate the results of January and run this formula on the workflow with AD and HR reports for Jan, I get the difference in the number of days between the Last logon date of Jan and 10th of March (instead of 10th of Jan). How can I create a formula that calculate the number of days for the month I am running the analysis for?
Thanks