Skip to content
Next Robot

Lencabel · Global

All cases

Cash-flow and margin model for a group

A finance model that shows, week by week, when accrued margin turns into cash.

Lencabel: desktop screenshot

// Results

in the weekly forecast of cash and financing needs
6 entities
accuracy: 21 tests reconcile the model with the spec
To the kopeck
and cash conversion cycle, with scenario comparison
DSO/DPO

// How it works

  • Cash-gap dashboard for a group of companies
    Cash-gap dashboard for a group of companies
  • Weekly cash-flow matrix with running balance
    Weekly cash-flow matrix with running balance
  • Multi-entity deal chains with margin control
    Multi-entity deal chains with margin control
  • Built-in calculation controls K1–K5
    Built-in calculation controls K1–K5

What we built

A six-step engine on our finance platform turns margin into a weekly cash forecast with financing need and DSO/DPO, eliminating intra-group turnover. 21 tests confirm accuracy to the kopeck.

  • Weekly cash forecast and financing need
  • DSO, DPO and cash conversion cycle
  • Intra-group elimination across six entities
  • Scenario comparison and Excel import

// Stack

  • NestJS
  • Prisma
  • React
  • Cash-flow engine
  • Jest
// How it works

Step by step

  1. #01

    Enter shipments and terms

    The team enters shipments, purchases and payment terms in the register or imports them from a four-sheet Excel template. A preview lists errors before loading; valid rows load with a report on rejected rows.

  2. #02

    Build payment schedules

    Each shipment gets 1–6 payment lines, each with its own reference date and offset. The schedule builder works from templates on a timeline and checks live that shares total 100%.

  3. #03

    Six-step calculation

    Deterministic code accrues margin on the shipment date, expands payment events by the official working-day calendar, weights them by probability and sums them by ISO week with a running balance.

  4. #04

    Group view and controls

    The model assembles deal chains across the six entities and eliminates intra-group turnover. VAT runs as a separate cash flow, controls K1–K5 check every calculation, and blocking errors stop a save.

  5. #05

    Metrics and scenarios

    The dashboard highlights cash gaps on the running balance; metrics include gap depth, financing need and margin-to-cash lag. Weekly matrix cells drill down to payment events, and 2–3 scenarios compare side by side.

// FAQ

Questions and answers

What is the Lencabel finance model?

Lencabel is a group of six cable-trading companies. Next Robot built a finance model for the group on its own finance platform. The model shows week by week when accrued margin turns into cash, where cash gaps open and how much financing the group needs. It covers deal chains between group entities, VAT as a separate flow, DSO, DPO and the cash conversion cycle, scenarios, and Excel import and export.

How does the Lencabel margin-to-cash engine work?

The Lencabel engine runs six steps as pure functions: margin accrual on the shipment date, payment-event expansion with offsets, working days and shift rules, probability weighting, ISO-week aggregation with a running balance, metrics, and controls K1–K5. It calculates by day and reports by week. Margin is net of VAT; cash includes VAT. 21 Jest tests reproduce the specification's worked example to the kopeck.

Which technologies does the Lencabel model use?

Next Robot built the Lencabel model on its finance platform: NestJS and Prisma on the server, PostgreSQL for data, and React with Ant Design for the interface. The calculation core is pure TypeScript functions tested with Jest. Excel data loads through a four-sheet template with a column-mapping wizard, and payment dates follow the official working-day calendar. Weekly cash and P&L matrices export to Excel, payment events to CSV.

How can a company get a similar cash-flow model from Next Robot?

Next Robot builds cash-flow and margin models like Lencabel's for groups with several legal entities, deal chains and deferred payment terms. Start with a free AI audit call that maps deals, payment terms and data sources such as Excel or ERP. An engineer sends an estimate within 24 hours. The next step is a fixed-price pilot with KPIs, and Next Robot signs an NDA on request.

// Next case
// Your project

Let's build this for you

Describe the task. An engineer replies within 24 hours with a plan and an estimate.

  • Free AI audit
  • Fixed-price pilot
  • NDA on request