[google]run php script using cron[/google] as said or else you need to do a check (like: "select user from table where ownage > 'X' and duedate < 'X days ago'") each time someone touches the database.
The last takes abit effort and might also cause high usage on the database if its called oh so very often... Just mentioning it.