# `Stripe.Services.Tax.CalculationService`
[🔗](https://github.com/jeffhuen/tiger_stripe/blob/main/lib/stripe/services/tax/calculation_service.ex#L2)

TaxProductResourceTaxCalculation

A Tax Calculation allows you to calculate the tax to collect from your customer.

Related guide: [Calculate tax in your custom payment flow](https://docs.stripe.com/tax/custom)

# `create`

```elixir
@spec create(Stripe.Client.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}
```

Create a Tax Calculation

Calculates tax based on the input and returns a Tax `Calculation` object.

# `retrieve`

```elixir
@spec retrieve(Stripe.Client.t(), String.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}
```

Retrieve a Tax Calculation

Retrieves a Tax `Calculation` object, if the calculation hasn’t expired.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
