---
title: "ArMetricsPanel"
description: "DSO with its method stated."
canonical: "https://lopifi.com/components/ar-metrics-panel"
---

# ArMetricsPanel

> DSO with its method stated.

Source: https://lopifi.com/components/ar-metrics-panel
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Family:** Receivables (AR) — 
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/receivables

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/ar-metrics-panel
```

## Specification

DSO (with the method stated, since the two formulas give different answers), best-possible DSO, ADD, CEI, % past due, bad debt rate. Every metric via `MetricDefinition`.

**API change:** takes `inputs` — opening AR, closing AR, closing current AR, credit sales, write-offs and days in period — and computes every value and substituted formula from them. It previously printed fixed figures.

## Rules this component obeys

Money is minor units, never floats. `null` is not `0` and neither is redacted. Negatives render in accounting parentheses with the parenthesis column reserved on both sides. Debit and credit are two columns. Per-currency decimal places. Polarity is explicit — up is not always good. Every figure states its period, entity, currency, basis and as-of.
