I'm trying to get a small piece of code to display on the checkout page.

What I would like is for the code to be able to do the following

40.00 - sub total = x

echo x if subtotal is < 40.00

Any ideas?