Edit: i just figured out that t is a float, I thought it was the seconds as an int.
Edit 2: if anyone reads this, try to make a barbershop type thing.