For the first 40 hours we regenerate 1 minute every 3 minutes offline, which gives a total of 120 hours.
For the two hours of green stamina we regenerate 1 minute every 10 minutes offline, which gives a total of 20 hours.
Also, you need to be logged off for 10 minutes before you start to regain any stamina.
So the total time is 140 hours and 10 minutes.