Stillman, a heartbroken physics pupil, builds a time machine when his girlfriend breaks up with him. Going again in time, he makes an attempt to avoid wasting their relationship by fixing each mistake he made—whereas dragging his greatest good friend alongside within the course of.