two Timestamp for progress %

I have 2 dates in Timestamp and I want to be able to get the percentage to be able to make the bar work

time 1 = 1602064800

time 2 = 1602065200

could you give me a help

percentage = (100/time 2) * time 1

but I have a feeling you are wording the question wrong..