Fix integer overflow for expected staking time.