One of the most mind-bending concepts in physics is that time is relative. According to Special Relativity, the faster you move through space, the slower you move through time.
The formula for Time Dilation is:
$$
\Delta t’ = \frac{\Delta t}{\sqrt{1 - \frac{v^2}{c^2}}}
$$
Where $\Delta t$ is the stationary time, $v$ is velocity, and $c$ is the speed of light.
def calculate_time_dilation(time_stationary, velocity_percent):
# c is simplified to 1, v is the percentage (e.g., 0.9)
facto