Brazil's tax agency just open-sourced its tax calculator under the MIT license...
Brazil's tax agency, the Receita Federal, has put the source code of its official tax calculator on GitHub under the MIT license. Tecnoblog reported that the agency published software projects in public GitHub repositories for the first time, and the Receita Federal's own announcement says the release lets others build in the same calculation logic.
Anyone can now run the same rules the agency runs.
The Receita Federal says the release lets companies, developers and software vendors embed exactly the same logic, and it expects fewer doubts, less rework and lower compliance costs. For a company that issues invoices in Brazil, that means checking its software against the official code instead of guessing how a rule was read.
The calculator covers the new consumption taxes. Tecnoblog says the main calculator integrates the calculation rules for the CBS and IBS taxes.