توضیحات
Now includes native WordPress block editor support.
The AC Retirement Nest Egg Calculator (live demo) creates date-based investment schedules and interactive charts. Calculate the amount you’ll have at retirement (the future value).
Supports 90 currencies, seven date formats, and 15 languages.
Now highly customizable via extensive configuration options.
Choose from four predefined sizes or customize via configuration options. Fully responsive with touch support.
Rebranding with your site’s name is supported and encouraged.
The plugin works via:
(a) Shortcode in posts/pages
(b) Widget area
(c) Template file
(d) NEW: Native WordPress block (WordPress 6.3+)
See usage under installation for details.
NEW: Upgrade to the free AC Retirement Nest Egg Calculator Plus v2.0 for a printable investment schedule.
عکسهای صفحه




بلوکها
این افزونه 1 بلوک ارائه میدهد.
- AC Retirement Nest Egg Calculator Retirement nest egg calculator with investment schedules and charts.
نصب
You can either (a) upload the fc-retirement-nest-egg-calculator folder with all its files to the /wp-content/plugins/ directory, or (b) unzip the plugin’s zip file directly into the /wp-content/plugins/ directory.
Activate the plugin through the Plugins -> Installed Plugins menu in the WordPress admin dashboard.
Upgrading
Version 3.0 adds optional WordPress block support. Existing shortcode, template, and sidebar placements and saved settings continue to work without site changes or conversion to blocks.
Usage
There are four ways to add the calculator to a page. Use only one Retirement Nest Egg calculator per page, including calculators placed in templates or sidebars. You can use different methods on different pages within a site:
- Add the shortcode [fcretirenesteggplugin] in the content area of your page or post and optionally configure the shortcode parameters. WordPress v5.0 introduced the block editor; v5.8 introduced the block-based widget editor. To use this plugin in either editor, add the built-in Shortcode block and paste this plugin’s shortcode into it.
- Add the following code to your template where you want the calculator to appear. See below for options.
- If your theme supports widgets, add the plugin to a widget area through the Appearance -> Widgets menu in WordPress.
- In the block editor (WordPress 6.3 or later), insert the AC Retirement Nest Egg Calculator block and configure it using the block settings sidebar, as described below.
Using the AC Retirement Nest Egg Calculator block
- Open a page or post in the WordPress block editor. Click +, search for AC Retirement Nest Egg Calculator, and select it. You can also find it in the Widgets category.
- Select the calculator block. Open the editor’s settings sidebar if it is hidden, then select the Block tab.
- Under Retirement values, set the initial current age, retirement age, current retirement savings, monthly investment amount, and annual interest rate. The default values are 28, 62, 16000.0, 750.0, and 5.5 respectively, independently of saved widget settings.
- Use Layout and visibility to choose a size and which controls to show. Under Branding, enable Link to and enter your brand name if desired. Use Currency and date to choose default conventions, and Style options. to customize colors, fonts, and widths.
- Each setting’s Reset button restores its shortcode default. The read-only preview updates as settings change, including all five inputs and five populated, disabled result fields. The last-investment date initially shows the selected date-format mask. Use the page preview to calculate or open schedules, charts, and dialogs.
- Save or update the page to publish your settings. Move the calculator between other blocks using the editor’s normal move or drag controls.
Block settings apply to that block and are separate from legacy widget settings. The editor preview uses configured defaults without applying saved browser currency/date preferences; visitors’ saved preferences continue to apply on the published page. Existing shortcode, template, and widget placements do not need to be converted to blocks.
The editor warns about other recognizable Retirement Nest Egg calculator blocks or shortcodes. Calculators inserted through templates or sidebars cannot always be detected, so check that the page contains only one calculator. Different calculator plugins share page resources and do not provide independent settings for every mixed-calculator configuration.
Shortcode parameters
“|” means or, thus “tiny” | “small” | “medium” | “large” means pick one (include the quote marks!). Example: sc_size=”medium” Whitespace around the equal sign is allowed; the examples below omit it for consistency.
* sc_size="tiny" | "small" | "medium" | "large"
* sc_custom_style="No" | "Yes"
* sc_add_link="No" | "Yes"
* sc_brand_name=""
* sc_hide_resize="No" | "Yes"
* sc_current_age="28"
* sc_retire_age="62"
* sc_current_savings="16000.0"
* sc_invest_amt="750.0"
* sc_rate="5.5"
* sc_currency= (see: the file currency_and_date_conventions.txt)
* sc_date_mask= (see: the file currency_and_date_conventions.txt)
* sc_theme_base_font_size="16px"
* sc_theme_primary_color="#28a745"
* sc_theme_primary_color_hover="#218838"
* sc_theme_primary_color_light="#30c853"
* sc_theme_primary_color_text="#fff"
* sc_theme_primary_color_text_inverse="#fff"
* sc_theme_background_muted="#f7f7f7"
* sc_theme_background_color_disabled="#efefef"
* sc_theme_background_calculator_color="#fff"
* sc_theme_background_modal_color="#fff"
* sc_theme_border_color="#dee2e6"
* sc_theme_text_color="#333333"
* sc_theme_tooltip_text_color="#fff"
* sc_theme_shadow_color="rgba(0, 0, 0, 0.1)"
* sc_theme_primary_font_family_stack="Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif"
* sc_theme_mono_font_family_stack="'Roboto Mono', 'Source Code Pro', ui-monospace, monospace"
* sc_calculator_min_width_tiny="150px"
* sc_calculator_max_width_tiny="250px"
* sc_calculator_min_width_small="200px"
* sc_calculator_max_width_small="300px"
* sc_calculator_min_width_medium="200px"
* sc_calculator_max_width_medium="400px"
* sc_calculator_min_width_large="200px"
* sc_calculator_max_width_large="440px"
* sc_hide_intl_conventions="No" | "Yes"
Examples (the first explicitly sets the standard display and calculation defaults):
[fcretirenesteggplugin sc_size="large" sc_custom_style="No" sc_add_link="No" sc_brand_name="" sc_hide_resize="No" sc_current_age="28" sc_retire_age="62" sc_current_savings="16000.0" sc_invest_amt="750.0" sc_rate="5.5" sc_currency="999" sc_date_mask="999" sc_theme_base_font_size="16px" sc_theme_primary_color="#28a745" sc_theme_primary_color_hover="#218838" sc_theme_primary_color_light="#30c853" sc_theme_primary_color_text="#fff" sc_theme_primary_color_text_inverse="#fff" sc_theme_background_muted="#f7f7f7" sc_theme_background_color_disabled="#efefef" sc_theme_background_calculator_color="#fff" sc_theme_background_modal_color="#fff" sc_theme_border_color="#dee2e6" sc_theme_text_color="#333333" sc_theme_tooltip_text_color="#fff" sc_theme_shadow_color="rgba(0, 0, 0, 0.1)" sc_theme_primary_font_family_stack="Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif" sc_theme_mono_font_family_stack="'Roboto Mono', 'Source Code Pro', ui-monospace, monospace" sc_calculator_min_width_tiny="150px" sc_calculator_max_width_tiny="250px" sc_calculator_min_width_small="200px" sc_calculator_max_width_small="300px" sc_calculator_min_width_medium="200px" sc_calculator_max_width_medium="400px" sc_calculator_min_width_large="200px" sc_calculator_max_width_large="440px" sc_hide_intl_conventions="no"]
[fcretirenesteggplugin sc_size="small" sc_custom_style="Yes" sc_hide_resize="Yes" sc_currency="83" sc_date_mask="2"]
[fcretirenesteggplugin sc_custom_style="No" sc_add_link="Yes" sc_brand_name="Friendly Mortgage" sc_hide_resize="Yes" sc_current_age="28" sc_retire_age="62" sc_current_savings="16000.0" sc_invest_amt="750.0" sc_rate="5.5"]
NOTE: You only need to include with the shortcode the options you want to change.
Defaults: The first example explicitly selects the large layout and automatic currency/date selection. Omit an attribute to leave it unspecified; the text null in a shortcode is a literal string, not a null value. Use sc_currency="999" and/or sc_date_mask="999" for automatic selection, subject to any saved user preference described below.
Optional array parameter passed to show_fcretirenestegg_plugin()
The values available for template options are the same as the shortcodes above except you must change “sc_” to “op_”.
<?php show_fcretirenestegg_plugin(array('op_size' => "large",
'op_custom_style' => "No",
'op_add_link' => "No",
'op_brand_name' => "",
'op_hide_resize' => "No",
'op_current_age' => "28",
'op_retire_age' => "62",
'op_current_savings' => "16000.0",
'op_invest_amt' => "750.0",
'op_rate' => "5.5",
'op_currency' => "999",
'op_date_mask' => "999",
'op_theme_base_font_size' => "16px",
'op_theme_primary_color' => "#28a745",
'op_theme_primary_color_hover' => "#218838",
'op_theme_primary_color_light' => "#30c853",
'op_theme_primary_color_text' => "#fff",
'op_theme_primary_color_text_inverse' => "#fff",
'op_theme_background_muted' => "#f7f7f7",
'op_theme_background_color_disabled' => "#efefef",
'op_theme_background_calculator_color' => "#fff",
'op_theme_background_modal_color' => "#fff",
'op_theme_border_color' => "#dee2e6",
'op_theme_text_color' => "#333333",
'op_theme_tooltip_text_color' => "#fff",
'op_theme_shadow_color' => "rgba(0, 0, 0, 0.1)",
'op_theme_primary_font_family_stack' => "Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif",
'op_theme_mono_font_family_stack' => "'Roboto Mono', 'Source Code Pro', ui-monospace, monospace",
'op_calculator_min_width_tiny' => "150px",
'op_calculator_max_width_tiny' => "250px",
'op_calculator_min_width_small' => "200px",
'op_calculator_max_width_small' => "300px",
'op_calculator_min_width_medium' => "200px",
'op_calculator_max_width_medium' => "400px",
'op_calculator_min_width_large' => "200px",
'op_calculator_max_width_large' => "440px",
'op_hide_intl_conventions' => "No"
)); ?>
Notes:
- If you want to add your brand to the calculator, the *_add_link option must be set to “Yes” (i.e. create a subtle follow link to AccurateCalculators.com).
- When branding, the brand name will be added before “Retirement Calculator”.
- If _custom_style is set to “Yes”, the plugin will load
dist/css/accurate-calculators-custom.cssrelative to the plugin’s root folder. You can modify the styles as needed. I suggest that you only include CSS selectors in this file that you actually change. - The plugin is built and tested on HTML5/CSS3 pages.
- size (min-width): tiny: 150px, small: 200px, medium: 200px, large: 200px
- size (max-width): tiny: 250px, small: 300px, medium: 400px, large: 440px
- The modals used for showing the schedule, currency select, help, etc are Bootstrap 5 modals. If your site uses an earlier Bootstrap version, you may have issues. Please contact me.
- Website developers can set a default currency sign and preferred date format by setting <op/sc>_currency and <op/sc>_date_mask respectively. Set one or both to an integer value. For the list of integers to support 90 plus currency symbols and 7 date format options, see the file currency_and_date_conventions.txt in the plugin’s root folder. (example: India, Indian Rupee: ₹1,23,45,678.99 = 83)
Enhanced Internationalization
Supports 90+ currency symbols (with proper number formatting) and 7 date formats (e.g., mm/dd/yyyy, dd/mm/yyyy, yyyy.mm.dd). Currency and date format are selected independently using the order below.
Automatic selection uses the browser’s regional locale, not the visitor’s physical location or the server’s location. For example, a browser using the Japanese locale can select Japanese yen even when the website is hosted in France.
How the plugin determines the currency symbol and date format:
1. A previously saved user preference in the browser’s local storage takes precedence, even if the currency/date selector is currently hidden.
2. If no saved preference exists, an explicit website setting for that convention is used. The value 999 means automatic selection.
3. Otherwise, the plugin attempts to select the convention from the browser’s regional locale.
4. If the selected or detected convention is unavailable or invalid, the plugin falls back to U.S. currency formatting ($) or the MM/DD/YYYY date format, respectively.
When the currency/date selector is visible, users can change either convention; their choices are saved in local storage for subsequent visits.
Language Translations
As of v1.5, the plugin supports 14 languages in addition to English.
Each language below links to a page where you can test all seven plugins in that language—no installation needed.
Supported Languages: – da – Dansk – Danish – de – Deutsch – German – es – Español – Spanish – fi – Suomi – Finnish – fr – Français – French – hu – Magyar – Hungarian – it – Italiano – Italian – lt – Lietuvių – Lithuanian – nl – Nederlands – Dutch – pl – Polski – Polish – pt – Português – Portuguese – ro – Română – Romanian – ru – Русский – Russian – sv – Svenska – Swedish
Notes:
1. The plugin automatically displays in the correct language based on the site’s “Site Language” setting in WordPress. If necessary, language files in the languages folder can be renamed.
– Example: The default Portuguese translation uses pt_PT (Portugal). If your site is set to use the Brazilian Portuguese locale, copy fc-retirement-nest-egg-calculator-pt_PT.mo to fc-retirement-nest-egg-calculator-pt_BR.mo and copy fc-retirement-nest-egg-calculator-pt_PT-fc-i18n-retirement-nest-egg.json to fc-retirement-nest-egg-calculator-pt_BR-fc-i18n-retirement-nest-egg.json. Keep both files in the languages folder. This reuses the supplied Portuguese translation; it does not change its regional wording.
A translation template file (
.POT) is included in the languages folder. Website owners can use a POT/PO file editor to translate the plugin into any WordPress-supported language. A fluent speaker can also edit an included.POfile. Regenerate the.MOfile for PHP translations and the corresponding.JSONfile for JavaScript translations; updating only the.MOfile does not update JavaScript text. Keep the plugin text-domain prefix and the target locale in the filenames, and retain the script-handle suffix on.JSONfilenames.Contribute Your Edits!
- If you enhance a translation and would like to share it, I will regenerate the
.MOand, if needed, the.JSONfiles for you.
- If you enhance a translation and would like to share it, I will regenerate the
Support
I’m happy to provide support for all my plugins! If you have a question or run into an issue, please visit the WordPress plugin’s support forum and post your question.
When submitting a request, please:
– Specify whether you’re using the original plugin or the “Plus” version.
– Provide a link to the page where the plugin is installed.
Including a direct link to the affected page can help me diagnose and resolve the issue more quickly.
Other Calculators
As of now, AccurateCalculators.com offers seven plugins in the WordPress Plugin Directory, with additional plugins available on the website. All plugins share a consistent feature set, styling, and functionality, ensuring a seamless look and feel across your site.
Below are links to each plugin’s page in the WordPress Plugin Directory.
- Auto Loan Calculator – solves for several unknowns and creates a payment schedule.
- Loan Calculator – a general purpose loan calculator with amortization schedule and charts.
- Mortgage Calculator – optionally incorporates points and insurance and creates a payment schedule
- Retirement Age Calculator – answers, at what age will I be able to retire given my investment plan?
- Retirement Nest Egg Calculator – answers, what will be the value of my retirement fund when I retire?
- Retirement Savings Calculator – how much do I have to invest periodically to reach my retirement goal?
- Savings Calculator – calculates the results of regular savings and investing
Also
سوالات متداول
Can the Retirement Nest Egg Calculator plugin be used on a commercial website?
Yes. Your use is appreciated.
If you’re a financial blogger, consider adding a “Calculators” or “Tools” section to your site and including all my calculators. More content equals more opportunity.
Does your plugin have any embedded advertising?
Absolutely not.
Is your plugin self-contained?
Yes. 100% of the plugin is installed on your server. There are no external dependencies.
Does the plugin include any backlinks?
No clickable backlinks are added by default. Setting the add_link option to Yes adds two links to AccurateCalculators.com: one in the calculator heading and one in the copyright footer. To display a brand name, also supply brand_name; a brand name by itself does not enable branding or links.
Is the calculator plugin responsive?
Yes. In fact, I use it on a Bootstrap v5.x responsive site.
Does the calculator support touch devices?
Yes. Users use the calculator with all types of devices.
What are the differences between the “Plus” version of your plugins and the “Non-Plus” versions?
- The “Plus” versions allow the schedule to be printed.
- The “Plus” version has improved numeric editing. Thousand separators are inserted as your user types which makes it easier to enter large numbers.
- The “Plus” version includes all PHP and CSS source code, but not the JavaScript source code.
- The “Plus” version sends to my site the domain name you install it on. I may link to your site to provide an example of the plugin’s use. (The plugin collects no other information.)
نقد و بررسیها
توسعه دهندگان و همکاران
“AC’s Retirement Nest Egg Calculator” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کردهاند.
مشارکت کنندگانترجمه “AC’s Retirement Nest Egg Calculator” به زبان شما.
علاقه مند به توسعه هستید؟
کد را مرور کنید، مخزن SVN را بررسی کنید، یا از طریق RSS در گزارش توسعه مشترک شوید.
گزارش تغییرات
3.0
- Added optional native WordPress block support, with sidebar controls for retirement nest egg defaults, layout, visibility, branding, currency/date conventions, and appearance. Requires WordPress 6.3 or later.
- Added translation support for block editor controls and messages, reusing existing translations with English fallback for untranslated text.
- Corrected plugin homepage references to identify the base Retirement Nest Egg Calculator rather than Retirement Nest Egg Calculator Plus.
- Corrected the plugin translation text domain and the legacy widget name and description translation domains.
- Corrected legacy widget/settings branding and appearance field names and security-token validation.
- Fixed dialog initialization in browsers without requestIdleCallback: the fallback now preserves calculator callback context and initialization callbacks.
- Removed obsolete commented-out code and unused update-check constants; corrected GPL license notices in source and generated assets.
2.1.1 (unreleased development milestone)
These changes ship with version 3.0, which adds native WordPress block support.
* Refactored the JavaScript and PHP into smaller functions and separate modules in preparation for future WordPress block support.
2.1
- Enhancement: Improved compatibility with page builders – specifically Elementor and Avada Builder (formerly Fusion Builder).
- Enhancement: Improved screen reader accessibility.
- Enhancement: A few CSS style tweaks.
2.0
- Improved design responsiveness, particularly at smaller screen sizes.
- Added dozens of easily configurable display and style options. No programming required.
- Many technical changes (dropped jQuery, Featherlight, updated to Bootstrap 5).
- Improved the overall quality of all the language translations.
Supported and updated continuously since 2016. See: changelog.txt
