AI drafts, code counts: where the numbers come from
Why dates, totals and scene allocation are calculated by plain code, while AI only writes suggestions and descriptions. Which rules the system enforces and how FilmProduct detects inconsistent data.

A language model is good at reading a screenplay. It is less good at arithmetic. That's why FilmProduct splits the work in two: AI reads, describes and suggests, while plain code does the counting.
The division of labour
| AI | Plain code |
|---|---|
| reads scenes and describes what they need | counts the scenes in the PDF |
| suggests filming locations | assigns scenes to days |
| writes the reasoning | enforces dates, public holidays and rest periods |
| suggests line items and prices | calculates totals, contingency and limits |
| describes the distribution plan | calculates cash flow and the recoupment order |
Three examples of checks
Scene count. The code counts the scene headings in the PDF. The agent cannot finish before the last scene. A scene with a number that doesn't exist in the file is rejected.
Scenes without dialogue. When a scene has no lines, the system asks a second time. This lets it tell genuine silence from a reading error.
Inconsistent output. If there is a serious inconsistency, the system rejects the save and names the rule that was broken. You can correct the data or run the step again.
Calendar rules enforced by code
The shooting calendar is built by code according to fixed rules of film production:
- One day means one location. The exception: two places in the same metropolitan area, less than 30 minutes' drive apart.
- A night shoot is followed by a day off, unless a weekend, public holiday or company move falls there anyway. Two nights in a row require a 12-hour break.
- A crew move between cities is a separate entry.
- The number of reserve days depends on the number of exterior scenes.
You'll find details and examples in Shooting schedule from script data.
How you know what is a suggestion
Locations suggested by AI are marked [PROPOZYCJA] (proposal). In the budget parameters window, every value shows its source: the schedule, the calendar, the film data sheet, or calculated.
Where the budget gets its target figure
- The first budget targets the figure in the film data sheet.
- Subsequent budgets target the budget entered in the project.
- An amount typed manually in the budget window always takes precedence.
So you know where every total came from, and you can change it deliberately.
What checks can't replace
The code will check whether the numbers add up. It won't check whether the location is free in May, whether the actor has agreed or whether the rate is realistic. That is the crew's job. AI output is an aid, not legal or financial advice. A person checks it before the budget, contracts and work plan are approved.
Your corrections
You can correct scene cards, the film data sheet, the calendar and budget items. After a significant change to the plan, recalculate the budget, then the cash flow. The system won't do this without your decision. We describe the order of steps after a change in New script version: what to do, step by step.




