pub async fn calculate( gateway: &str, c2s_json: &str, timeout_secs: u64, output: OutputFormat, ) -> Result<()>