Factored out to_secs() - looks prettier