Time remaining function and fix for sizeUploaded function