Not sure what yoou want to calculate, but have a look at this part of the documentation: https://docs.mendix.com/refguide/date-creation/
It starts with creating a date and in the lefthand menu you see all the datetime function call you can use to manipulate a datetime variable.
I know that there are many sites that can calculate the date online. You'd better try them.