Help giving discount for on time payments

Help giving discount for on time payments

How do I give a customer a discount in % for paying on time? I see the late penalty. I want to do the same thing for early or on time payments