This helper template calculates periods for Swedish certifications, as stated in [1] and [2]
It returns:
Returns 0 if the data provided is not sufficient.