Hi Guys,
I have fixed this. I was comparing seconds to minutes, my bad .
I have pushed a fix to the github repo, the change needed was -
https://github.com/markn86/moodle-mod_certificate/commit/519ac742885496fd832612813ab58907949eacd2
Regards,
Mark