Hi,
I need to answer the same question as we are looking to implement Moodle and this will need to be one of the required functions.
Have you tried using the "Duration after enrolment" option in the course completion settings?
I currently don't have a Moodle install on which to test this.