Fix float precision out & half hour calc period