Automatically calculate cooldown