validate time using regex and add using time class

define a method to sum time and display in required format