If you go along the edge a distance $x$ then head straight for the far corner can you work out the time taken as a function of $x$?