=== Rent vs Buy Calculator ===
Contributors: rward
Tags: rent vs buy, calculator, real estate, home buying, property management
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.2
Stable tag: 2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Compare the financial cost of renting vs. buying a home. Generate reports, capture leads, and visualize data with interactive charts and PDFs.

== Description ==

The Rent vs Buy Calculator is a modern, interactive plugin that helps users analyze the financial implications of renting a home compared to buying one. It features a customizable UI, lead capture functionality, PDF reporting, and dynamic charts for clear data visualization.

Use the shortcode `[rent_vs_buy_calculator]` to display the calculator on any post or page.

**Features:**

- Compare renting vs buying costs over time
- Generate personalized PDF reports with charts
- Optional lead capture (name, email, phone)
- Email report directly to users
- Customize button colors and text
- Admin settings page for easy configuration
- Clean, responsive interface using Chart.js and jsPDF

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory or install via the WordPress Plugins menu.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Use the `[rent_vs_buy_calculator]` shortcode to display the calculator.
4. Visit **Settings > Rent vs Buy** to customize lead capture, PDF settings, and UI options.

== Frequently Asked Questions ==

= Can I capture user data? =
Yes! Enable lead capture from the plugin's settings page and optionally require a phone number.

= Can users email themselves the report? =
Yes. After calculation, users can send a PDF copy of the analysis directly to their inbox.

= Does this plugin store user data? =
User information (name, email, phone) is stored in WordPress only if lead capture is enabled.

= Is this plugin compatible with any theme? =
Yes. The calculator is styled to fit most themes and uses responsive design principles.

== Screenshots ==

1. Calculator form input view
2. Results summary with cost comparison
3. Interactive charts: equity, cost breakdown, breakeven
4. Admin settings for customization

== Changelog ==

= 2.0 =
* Major UI update with new chart modes (cumulative vs annual)
* Added admin settings page
* Added lead capture and PDF customization
* Users can email themselves PDF reports
* Improved responsive layout

= 1.0 =
* Initial release with core rent vs buy calculator functionality

== Upgrade Notice ==

= 2.0 =
Big upgrade! Enable lead capture, email reports, and customize the plugin visually via the admin panel.

== License ==

This plugin is licensed under the GPLv2 or later. See `license.txt` for details.

