If I understand this issue correctly, I would agree that the logic should be: 

item overdue =  due_date - today.

Grace period calculations only come into play if the item is overdue to discount the fine when applicable.

2 cents.
-----Original Message-----
From: Michael Hafen [mailto:mdhafen@tech.washk12.org]
Sent: Thursday, September 3, 2009 10:53 AM
Subject: Re: [Koha-devel] [Koha-patches] [PATCH] include grace period when calculating overdue fine

Hello list, Here's the situation. Currently the fines.pl calls CalcFine whichcalculates the number of days overdue as ( date_due - today ) - graceperiod....