=== Kalkulatory rat i LTV — Kredytowy Kalkulator ===
Contributors: jaroslawwasinski
Tags: calculator, mortgage, loan, ltv
Requires at least: 6.5
Requires PHP: 7.4
Tested up to: 7.1
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Polish-language loan payment and LTV calculators. Local browser calculations, multiple shortcodes and clearly stated assumptions. No external service.

== Description ==

Two calculators for Polish-language educational and property websites. The plugin includes all JavaScript and CSS locally. It does not require an account, API key, iframe or external service. The interface is in Polish; the source and license are included.

* Equal monthly payments: payment amount, total interest and total payments for a fixed nominal annual rate. No additional fees, insurance, rate changes or APR calculation.
* Loan to value: loan divided by property value, property value minus loan, loan amount at a chosen comparison threshold and the reduction needed to reach it. A threshold is a calculation parameter, not a lender decision or eligibility rule.
* Multiple independent instances on a page, unique field IDs, keyboard access, explicit labels, error messages and number input with Polish decimal separators.
* The calculators do not submit or store entered values, set cookies or contain analytics. Other plugins or scripts on the host site may have their own data practices.
* No public credit link by default. The site administrator may explicitly enable an optional credit with podpis="tak". It uses rel="nofollow noopener". Removing it does not limit functionality.
* No database settings or custom update service. CSS uses the standard frontend enqueue hook; calculator JavaScript is enqueued when the shortcode is rendered.

These are educational models, not financial offers, advice, credit eligibility decisions or interest rate forecasts. Calculations keep full precision until display rounding. Actual lender rounding and daily interest calculations may differ.

== Installation ==

1. Upload the ZIP in Plugins > Add New Plugin > Upload Plugin and activate it.
2. Add a Shortcode block and enter [kk_kalkulator].
3. For a loan example use [kk_kalkulator kwota="50000" lata="5" stopa="10"].
4. For LTV use [kk_kalkulator typ="ltv" kredyt="400000" wartosc="500000" prog="80"].
5. Optionally add podpis="tak" to explicitly enable the public credit link. It is disabled otherwise.
6. Check the published page on a phone. Several calculators can be used on the same page.

Shortcode attributes accept ungrouped numbers with a decimal point or comma, at most two decimal places. Invalid shortcode values fall back to documented defaults. Invalid form entries clear previous results and display an error.

Payment limits: principal PLN 1,000 to 10,000,000, term 1 to 35 whole years and nominal annual rate 0 to 25%. LTV limits: loan PLN 0 to 100,000,000, positive property value PLN 0.01 to 100,000,000 and comparison threshold 1 to 100%.

== Frequently Asked Questions ==

= Does it send input values to Kredytowy-kalkulator.com? =
No. Calculations run in the visitor's browser using the local plugin files. The plugin has no external service or telemetry. A visitor who deliberately follows the optional credit link visits the publisher's website.

= Does it work without JavaScript? =
Fields and assumptions are visible, but calculation requires JavaScript. Form fields have no submission names and the plugin has no server-side form endpoint.

= What does an 80% threshold mean? =
It is an editable comparison parameter, not a statement about a bank's lending requirements. The lender may use a different property value from the purchase price.

= Are there automatic updates? =
The direct ZIP release has no custom updater. Administrators install a new package when available. Publication in the WordPress.org directory is subject to review; submission is not approval.

= Where are the Polish instructions? =
INSTRUKCJA-PL.txt is included in the package, together with the source code and GPL license.

== Changelog ==

= 1.0.1 =
* English directory readme with separate Polish instructions.
* WordPress-native output escaping and direct access guard for the template.
* No changes to calculation formulas or opt-in attribution.

= 1.0.0 =
* First direct release: equal monthly payments and LTV, local calculations and optional credit disabled by default.
