Adding interval function for friendly formatting