Do calculation slightly differently so u64::MAX as a parameter doesn't crash the bot.