Inital code, returning only time length float