I have project in which user gets specific number of hours for month respective to their subscription and if he had some hours remains at the end of month his remaining hours would be added in next month hours. For example if the user is subscribed to 1400 hours subscription and he has 20 hours left at the end of month so in the next month he get 1420 hours. However in my database hours are stored in this form 1400:00:00 so i get the value 20:00:00 how do i add 1400:00:00.
$string = '1400:00:00';
$explode = explode(':',$string);
$hours = $explode[0];
$new_hours = $hours + 20;