The grace period is used to give the customer a few extra days after the due date to pay the invoice without being charged with interest. When the incoming payment is registered, the invoice will be selected for interest charge only if the payment day is after the due date with addition of the grace days. This is determined by the setting Days of Grace for Interest under the Sales tab in the Settings procedure.