What it does now
ContractBill turns a Schedule of Work into an RA Bill.
You send a photo of the paper your JE already signed. The AI reads the lines. But every code it returns is matched back against the checked rate database, and the description, unit and rate come from the book, never from the photo. Anything it cannot match with confidence is marked for you to check, rather than guessed.
On a real 85 row scanned schedule, with handwritten corrections and signatures on it, it read every row in under three minutes: 74 matched straight to the book, 5 marked to check, and 6 left to type in. Where one code carried two different rates in DSR 2023, it showed both, with their page numbers, and asked which one was on the paper, rather than picking one and being right half the time.
Out comes the whole bill in one Excel file with live formulas inside it, plus a black and white A4 PDF for each sheet, in the format the department accepts. All ten sheets: Schedule, Measurements, Abstract, Deviation, Recovery, the AE's and EE's Test Check Statements, Part Rate, Completion Certificate and Cement.
Three of those are worth talking about, because building them taught me something about the documents themselves.
The Deviation Statement works out nothing of its own
Both quantity columns and both amount columns are live references into the Schedule and the Abstract, and the two footer chains are the same calculation steps those sheets already run. The sheet cannot disagree with the bill it summarises.
That design came straight from what I found in the handmade versions. Across the two accepted bills I tested against, 58 cells on the Deviation sheets are #REF!. One estimate total is a typed number that leaves out an item its own actual column includes. On one bill the estimate column silently disagrees with its own Schedule on 37 of 85 rows. And the one figure the whole sheet exists to produce is hidden in a column 0.27 units wide, when it is worked out at all, because the other bill never works it out.
These are signed, accepted, passed documents. Nobody caught any of it, because nobody can check 85 rows of linked formulas by eye. That is not a criticism of the engineers who made them. It is the strongest argument I have for why this should not be done by hand.
There are three things the department's own sheet does that we deliberately do not, and each was a judgement call:
- It carries a separately typed sanctioned estimate quantity that, on one bill, exists in no other document. We take the estimate side from the Schedule instead, because a silent second set of quantities is a number nobody can check.
- It leaves one item out of the correction base using a bare, unlabelled cell that no printed row explains, and on one bill leaves it out of one column only. We run the same chain on both sides, so the two columns always cover the same items.
- It hides the deviation total. We print it.
The Part Rate Statement is a register, not a rate
When work is built but not finished, the department pays a lower rate now and holds back the balance. The obvious way to build this is to treat part rate as another kind of rate and let it flow through the calculation. That would be wrong.
The accepted bill prices every part rated item at its full rate on the Abstract, and records what is held back only on this sheet. So our sheet reads the bill and never changes it, and the calculation engine never sees a part rate at all. Treating it as a rate would reprice the Abstract and stop matching the paper the department passed.
That leaves a real tension inside their own bill: a statement signed by the JE, the AE and the EE says ₹1,84,482 of work is only part rated, while the Abstract beside it bills that work in full. Copying their practice is the right call for launch. Whether a later bill should net it off is a question for an AE, not for me.
One more detail I liked. Their sheet works out the amount held back in three scratch columns off the right hand side of the page, which are neither hidden nor outside the print area, so they appear on the signed statement. Ours does it in line.
The Test Check Statements
These are the simplest sheets, and they taught the smallest useful lesson. Their header is typed by hand, and on one of the accepted bills it had drifted from the agreement number on every other sheet in the same workbook. Ours takes the header from the Schedule, so it cannot drift.
Smaller decisions
Some decisions only matter if you have actually filed one of these bills:
- Serial numbers stay exactly as printed: never sorted, never renumbered, and kept as text, so "16 17" survives as it is. The AE checks them against his own copy, and renumbering is how a bill gets returned without anything being wrong in the numbers.
- Quantities are worked out unrounded and shown to two decimals, so the totals match the passed bill to the rupee.
- Money is shown to two decimals and totals in whole rupees. Cement coefficients stay at three decimals, because that is how the book prints them. Everything uses Indian digit grouping.
RateAnalyser answers the other question
RateAnalyser answers the question a JE argues about on site: why is this rate 6,207.25?
The CPWD Delhi Analysis of Rates 2023, the DAR, is the book that answers it. For every DSR item it prints the labour, material and machinery behind the rate, and the steps that turn a subtotal into the final rate. It exists as two PDFs and nothing else. There is no search, no cross reference you can follow, and no way to ask what happens if cement costs more.
RateAnalyser holds 2,964 analyses, from both volumes of the DAR and CPWD's 11 correction slips, searchable by DSR number, by a few words, or by the rate itself. It opens the cross references, so when brick work is priced using mud mortar from another item, you can open that item in place and go down to the mason's day rate underneath it. Our own arithmetic recomputes 2,956 of the 2,964 analyses to the printed rate, to the paise.
The Delhi Analysis of Rates is published by CPWD, and the copyright in it belongs to CPWD. RateAnalyser is not connected with CPWD and claims no right in the book. What the product adds is our own work: reading it, checking its arithmetic, and the tools built on top.
The test that mattered
Everything above is process. Here is the result.
I took a real bill that a Delhi department had already passed. A signed document, not a sample: 85 items, factor 0.973, cost index 3%, quoted 25.90% below.
| On the passed bill | The accepted bill | Our engine |
|---|---|---|
| Item total | 22,13,284.82 | 22,13,284.82 |
| Work Outlay | 16,43,636 | 16,43,636 |
The detail I am most pleased about is smaller than that. Serial number 15 on that bill is an exact halfway rounding case:
67.46 × 19.75 = 1332.335
JavaScript's Math.round gives 1332.33
Excel's ROUND gives 1332.34 the figure the department accepted
Our calculation core gives 1332.34, because it follows Excel's rounding rather than the language's, and it does so because the bills these departments accept were built in Excel.
The goal is not mathematically correct. The goal is identical to what gets passed.
The engine has a golden suite of tests that compares every output against the frozen 1.8.0 app, and a separate suite that compares against signed documents.
What was not done in September
An honest list, because a post that only has wins is not useful to anyone. This is how things stood when I wrote this:
- No users yet, and no revenue.
- Live payments were not switched on. Razorpay was integrated and KYC was done, but the live keys were still pending.
- The AI cost per read was not measured, so parts of the pricing model were placeholders rather than results.
- The Part Rate Statement had no screen yet. The sheet was built and correct, but the part rate itself, and three date fields, still had to be set outside the interface.
- Sub head 17 of the DAR is missing, because 115 pages of Volume 2 are scans with no text in them at all. That is about 225 items, about 7.5% of the book, and it needs OCR rather than extraction.
- Only Delhi at launch, with DSR 2023 and 2016. Haryana's HSR is extracted and checked across three editions, but it is not in the product yet.
What I actually think this is about
There is a lot of talk right now about AI writing code, and I have been on the receiving end of it: most of the code in this project was written with AI's help, and I would not have shipped this alone in three months without it.
But that is not the interesting part, and I think a lot of people are looking at the wrong thing.
The interesting part is the huge amount of work in this country that is still done by hand, on paper and in Excel, by people who have never been anyone's software customer. Not because the work is unimportant, but because the software was never built, because building it needs an understanding of work that nobody building software has ever sat inside.
I did not find this problem by looking for a market. I found it by watching it up close for years. The moat is not the app. It is knowing that the AE checks serial numbers against his own copy, that the tender says DSR 2016 while the rates say DSR 2023, that 0.973 is sometimes already built in, and that the department accepted 1332.34 rather than 1332.33.
There are thousands of these. Every one of them needs somebody who already understands the paperwork.
Where it stands
Two products. ContractBill builds the RA Bill from the DSR. RateAnalyser shows why a rate is what it is, from the DAR.
Both are launching soon. The first bill is free, then ₹1,199 per bill before GST, or ₹1,499 when a bill needs more than 3 AI readings, and downloads and corrections are free.
10,655 rate items, and every one from the printed book carries its page number. 604 cement coefficients. 2,964 rate analyses. One database in Mumbai, one deploy in Mumbai, and a row level security policy standing between every firm and every other firm.
Built solo, from the first week of July.
If you bill government works, or you are a JE or an AE who has sent bills back for wrong rates, I want to know what breaks for you. That is more useful to me right now than a sign up. Write to me at admin@revenin.com.