In Time was written and directed by Andrew Niccol, whose famous work is my favorite movie Gattaca. I watched and enjoyed In Time although a number of people gave low score to on IMDb.
Paying time for getting something sounds unreal, but we actually do such things just without realizing it. When you buy junk food, you pay money plus some time like a day, because your life expectancy would become a day shorter with it.
The picture is from IMDb.