I'm trying to make a negative number in a calculation to 0. I've tried several recommendations on the internet with no results. I'm calculating the "days remaining" = " Maturity date" of the GIC - "Get(current Date)". This calculation give the number of days remaining all right, but the number will be minus when it goes beyond the maturity date. My question is how can I turn this negative number into a zero?

Max ( 0 ; yourcalculation )