---
name: estimate-per-diem
description: "Calculate per diem for a trip with meal deductions and weekend rules."
title: "Estimate per diem for a trip"
url: https://agents.ramp.com/playbooks/estimate-per-diem
runtimes: [Claude Desktop, ChatGPT, Claude Code, Codex, Perplexity]
---

# Estimate per diem for a trip

Per diem math depends on dates, meals covered, and company policy. Your agent estimates the amount from your trip details so you can plan reimbursements before submitting.

## How to run

Identify which runtime you're operating in (Claude Desktop, ChatGPT, Claude Code, Codex, Perplexity). Use the matching section below; ignore the others.

## Claude Desktop

Copy and run this prompt:

```
## Before you run
- Ramp connector enabled in Claude Desktop ([connector directory](https://claude.ai/directory/61bac03c-3f98-4b3c-affb-1b99533fa82c))

Estimate my per diem reimbursement in Ramp.

Start date: [REPLACE — trip start]
End date: [REPLACE — trip end]
Meals provided: [REPLACE — yes/no, or count of breakfasts/lunches/dinners covered]
Deduct weekends: [REPLACE — yes/no, if applicable]

Show the estimated per diem total and how deductions were applied.
Ask me for any missing inputs before estimating. Do not submit a reimbursement.
```

## ChatGPT

Copy and run this prompt:

```
## Before you run
- Ramp connector enabled in ChatGPT ([app](https://chatgpt.com/apps/ramp/asdk_app_69250fb6281c819195b52a1556b0060c))

Estimate my per diem reimbursement in Ramp.

Start date: [REPLACE — trip start]
End date: [REPLACE — trip end]
Meals provided: [REPLACE — yes/no, or count of breakfasts/lunches/dinners covered]
Deduct weekends: [REPLACE — yes/no, if applicable]

Show the estimated per diem total and how deductions were applied.
Ask me for any missing inputs before estimating. Do not submit a reimbursement.
```

## Claude Code

Copy and run this prompt:

```
## Before you run
- Ramp CLI installed: `curl -fsSL https://agents.ramp.com/install.sh | bash`
- Logged in: `ramp auth login`

Estimate my per diem reimbursement in Ramp.

Start date: [REPLACE — trip start]
End date: [REPLACE — trip end]
Meals provided: [REPLACE — yes/no, or count of breakfasts/lunches/dinners covered]
Deduct weekends: [REPLACE — yes/no, if applicable]

Show the estimated per diem total and how deductions were applied.
Ask me for any missing inputs before estimating. Do not submit a reimbursement.
```

## Codex

Copy and run this prompt:

```
## Before you run
- Ramp CLI installed: `curl -fsSL https://agents.ramp.com/install.sh | bash`
- Logged in: `ramp auth login`

Estimate my per diem reimbursement in Ramp.

Start date: [REPLACE — trip start]
End date: [REPLACE — trip end]
Meals provided: [REPLACE — yes/no, or count of breakfasts/lunches/dinners covered]
Deduct weekends: [REPLACE — yes/no, if applicable]

Show the estimated per diem total and how deductions were applied.
Ask me for any missing inputs before estimating. Do not submit a reimbursement.
```

## Perplexity

Copy and run this prompt:

```
## Before you run
- Ramp connector enabled in Perplexity ([connector](https://www.perplexity.ai/computer/connectors?connector=ramp))

Estimate my per diem reimbursement in Ramp.

Start date: [REPLACE — trip start]
End date: [REPLACE — trip end]
Meals provided: [REPLACE — yes/no, or count of breakfasts/lunches/dinners covered]
Deduct weekends: [REPLACE — yes/no, if applicable]

Show the estimated per diem total and how deductions were applied.
Ask me for any missing inputs before estimating. Do not submit a reimbursement.
```
