calculating the date of the last day of last month can be achieved with:
tday=today()
firstOfMonth = date(getYear(tday),getMonthOfYear(tday) ,1 ) // first of the month
LastOfPreviousMonth=plusTemporal(firstOfMonth , periodOfDays(-1))
LastOfPreviousMonth
To get the date difference between your column “Scanning Date” and the LastOfPreviousMonth calculated in the above Column Expressions, I would suggest following the Column Expressions node with a Date&Time Difference node