# build-monthly-pnl-and-cash-flow

Build a monthly P&L (revenue, COGS, gross margin, opex, EBITDA, net) and cash-flow statement from a transactions CSV

- **Space:** finance-dashboards-public (https://github.com/Tech-Realm/space-finance-dashboards-public/tree/main/build-monthly-pnl-and-cash-flow)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** stdlib; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use finance-dashboards-public/build-monthly-pnl-and-cash-flow` or MCP `get_pack finance-dashboards-public/build-monthly-pnl-and-cash-flow`
- **Files:** CHANGELOG.md, code/fin.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/transactions.csv, outcome/fixtures/unit.json, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

Build a monthly P&L (revenue, COGS, gross margin, opex, EBITDA, net) and cash-flow statement from a transactions CSV

## Goal
Founders get a correct monthly P&L and cash-flow view from the bank/ledger export without a spreadsheet.

## Steps
1. Export transactions; map each to a type (keep a category->type map).
2. `fin.py pnl tx.csv`, `fin.py cashflow tx.csv --opening <cash>`.
3. Check: closing cash equals the bank balance; investigate differences.

## Edge cases
- Accrual vs cash: this is cash-basis unless you add accruals as rows.
- Refunds: negative revenue rows.

## Don'ts
- Don't mix currencies in one file.



---

Canonical URL: https://logicpacks.io/packs/finance-dashboards-public/build-monthly-pnl-and-cash-flow

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
