The writers (Mike Dellosso, Rene Gutteridge, Travis Thrasher, Tom Pawlik, Ronie Kendig, James Andrew Wilson and Robin Parrish) began with the same premise and crafted a story from that point. The simple premise questions a point-of-death choice. As the protagonist faces death, he or she is offered seven hours. The hours can be added to the present moment or relived from the past. At the end of the time, the person will instantly jump to the moment of death.
Read more here.