I think it is possible with
this extension.
You could save the timestamp (that is, the number of seconds since 1970) when the player quits the game.
When the player re-opens the game, you calculate
current time stamp minus saved time stamp to determine how many seconds has passed since the last time he played. You can then determine how much the player earned in that number of seconds (there is also a block to convert them in minutes or hours if you prefer).
I did not actually use that extension, so I can't tell for sure if it'll work, but it should.
And don't forget that the player would be able to cheat by changing the time of his device.