Slug, just said welcome, now here's a question, well ......
In short, no the EPG is not smart. You use a feature known as pre and post padding. There are two sorts, soft and hard padding. You can read about these in the knowledge-base -
look here.
Basically you tell the recording to finish 5, 10, 15 or 30 minutes after the scheduled finish time. Me personally, 15 minutes normally and 30 minutes for channel 10 because no one there has a functioning watch.