This helper template calculates periods for Portuguese certifications.
It returns:
Returns 0 if the data provided is insufficient