Mathematicians found out why waiting for the elevator takes forever

Does it ever feel like an elevator is always going in the wrong direction? Mathematics can explain why