Use Custom Field to multiply date by range of days

Greetings, I have a table called invoices and I want it to multiply the value of the added_date column by 0.05 if it is between 31 and 59 to show them in a custom field called arrears_pay
all this in RadSystem 8.1.8 with laravel and boostrap