Calculate number of overdue occurrences (Fixes #9)