This is Jason Reitman's In God We Trust (2000).
A speeding truck sends Robert into purgatory, with the probability of a warm climate. He escapes to Earth and tries to fix things before purgatory catches up with him.
A man standing in the middle of a road holding a coin is struck by a jeep. His soul (which looks just like his physical form) then steps off an elevator into Purgatory, which is represented as an office-like environment with clerks sitting behind desks and processing souls, one-by-one.
One of the clerks informs him that you accumulate a scorecard over your lifetime which determines whether you go to Heaven or Hell, and that the protagonist's score is slightly negative due to him racking up a large number of minor offenses. The protagonist attempts to plead his case, but the clerk isn't buying it.
During their conversation, the clerk is distracted by a computer glitch, and the protagonist takes the opportunity to dash back into the elevator, at which point he wakes up on a gurney in an ambulance back on Earth.
He then runs around town trying to say goodbye to his loved ones, and performs a series of good deeds along the way -- seemingly inadvertently in at least some instances -- which gradually improves his score, visually depicted on a computer monitor in Purgatory.
Meanwhile, the clerks in Purgatory keep trying to kill him again by using their computers to remotely influence events on a Earth, in a manner somewhat reminiscent of Final Destination.
Near the end, a homeless man asks him for spare change. He doesn't have any, but sees a coin lying in the road, and when he picks it up, he's struck by a jeep again. The coin flies from his hand and lands in the homeless man's cup, which is just enough to turn the protagonist's score positive.
The film is just under 17 minutes in length. You can view the office scene at around the 2:05 mark in the video below: