Rested time is actually only 25% of what you would've gained, and you do not get exp/gold while offline. (And only for gold/exp, you lose 100% of cards)
It's a 50% bonus, and its duration is half of the time you were offline.
It's a 50% bonus, and its duration is half of the time you were offline.