Sources & licenses
Calculator credits & licenses
The parts behind the LoschaZ Calculator and its percentage, unit, date and loan pages: what we wrote, the one library we use and the models the results rely on.
What we built
LoschaZ wrote the workspace, the expression parser and evaluator, the percentage, bill, loan, savings, date, fraction, statistics, equation and base helpers, the function graph and the interface for this website. Everything runs in your browser; no calculation is sent to a server or a third-party API.
Components & licenses
decimal.js 10.6.0 by Michael Mclaughlin and contributors provides the arbitrary-precision decimal arithmetic. It is self-hosted unchanged and distributed under the MIT license, reproduced in full:
The MIT Licence. Copyright (c) 2025 Michael Mclaughlin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Data sources
Unit factors are fixed definitions rather than a dataset: the international yard and pound (1959), the US liquid gallon of 231 cubic inches, the Imperial gallon of 4.54609 liters, the thermochemical calorie, the international table BTU and binary prefixes (KiB, MiB, GiB, TiB) as standardized by the IEC. Temperature offsets are handled separately from scale factors. No exchange rates or other live data are used.
Models and limits
The engine keeps 40 significant digits and displays up to 16, or every digit of a whole number up to 40 digits long. Percentages use explicit base amounts. Calendar arithmetic uses Gregorian dates without times or time zones, from year 0001 to 9999. Loan estimates use a fixed nominal rate, end-of-month payments and interest rounded to cents, with the final payment settling the balance; savings use monthly compounding. Graphs use JavaScript floating-point arithmetic and finite sampling, so discontinuities or very narrow features can be missed. This is a practical browser tool, not a proof system and not financial advice.