I can't find a way to change a timespan to an integer. Any help would be greatly appreciated