The calculator button allows you to make calculations using the date/time and/or number formula fields within a form.
Drag and drop text or datetime fields onto Calculator tab/button. Choose the “Number” in the Data type of your text field and date, time or datetime format in your datetime field. To make calculations, use the Datetime or Number formula fields. Enter the formula to get needed calculation result.
Read more in User Manual here