A concrete formula for calculating AI agent cost per task, covering tokens, tool calls and retries, so uptime credits don't ...