I want to calculate the total years of working experience of a person
the person just inputs his/her work history(company name, start period, and end period)
ex.
company1 jan-2008 - jan-2010
if this is the case its easy
but for this
company1 April/2008 - May/2012
company2 July/2008 - October/2012
company3 July/2008 - November/2012
company4 July/2008 - January/2012
company5 October/2008 - February/2012
company6 January/2009 - July/2012
company7 April/2009 - September/2012
company8 May/2009 - December/2012
company9 April/2011 - August/2012
company10 August/2011 - August/2012
company11 April/2011 - August/2012
company12 May/2012 - July/2012
the case above is a person with multiple jobs at the same time
as you can see, there are dates that are overlapping
can you help me construct a logic for calculating the years of working experience of a person (with a person with multiple jobs at the same time accounted)
thank you in advance


