Calculating Accurate Time Difference Across Months for Coin Farming

Thank you for your answer. I downloaded older version (4.27) of UE and did it in there because it works in older versions. After that I copied this substraction into my current project and it seems that it works.