Linux 软件免费装
Banner图

AC's Retirement Age Calculator

开发者 financialcalculators
accuratecalculators
更新时间 2026年10月19日 23:05
PHP版本: 5.8 及以上
WordPress版本: 7.1
版权: GNU General Public License
版权网址: 版权信息

标签

retirement calculator retirement age calculator retirement saving retirement planning

下载

1.3 1.4.0 1.4.2 1.4.3 1.4.4 1.1 1.5 1.1.2 1.5.2 1.5.4 1.2.0 2.0 3.0 2.1

详情介绍:

Now includes native WordPress block editor support. The AC Retirement Age Calculator (live demo) creates a date-based investment schedule and interactive charts. Calculate the age at which you can retire. 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 Age Calculator Plus v2.0 for a printable investment schedule.

安装:

You can either (a) upload the fc-retirement-age-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 Age calculator per page, including calculators placed in templates or sidebars. You can use different methods on different pages within a site:
  1. Add the shortcode [fcretireageplugin] 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.
  2. Add the following code <?php show_fcretireage_plugin(); ?> to your template where you want the calculator to appear. See below for options.
  3. If your theme supports widgets, add the plugin to a widget area through the Appearance -> Widgets menu in WordPress.
  4. In the block editor (WordPress 6.3 or later), insert the AC Retirement Age Calculator block and configure it using the block settings sidebar, as described below.
Using the AC Retirement Age Calculator block
  1. Open a page or post in the WordPress block editor. Click +, search for AC Retirement Age Calculator, and select it. You can also find it in the Widgets category.
  2. Select the calculator block. Open the editor's settings sidebar if it is hidden, then select the Block tab.
  3. Under Retirement values, set the initial current age, current savings, monthly investment amount, annual interest rate, and future savings goal. The default values are 28, 16000.0, 750.0, 5.5, and 1000000.0 respectively, independently of saved widget settings.
  4. 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.
  5. Each setting's Reset button restores its shortcode default. The read-only preview updates as settings change, including all five inputs and six populated, disabled result fields. The last-deposit date initially shows the selected date-format mask. Use the page preview to calculate or open schedules, charts, and dialogs.
  6. 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 Age 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. Examples (the first explicitly sets the standard display and calculation defaults): [fcretireageplugin sc_size="large" sc_custom_style="No" sc_add_link="No" sc_brand_name="" sc_hide_resize="No" sc_current_age="28" sc_current_savings="16000.0" sc_invest_amt="750.0" sc_rate="5.5" sc_goal_amt="1000000.0" 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"] [fcretireageplugin sc_size="small" sc_custom_style="Yes" sc_hide_resize="Yes" sc_currency="83" sc_date_mask="2"] [fcretireageplugin sc_custom_style="No" sc_add_link="Yes" sc_brand_name="Friendly Mortgage" sc_hide_resize="Yes" sc_current_age="28" sc_current_savings="16000.0" sc_invest_amt="750.0" sc_rate="5.5" sc_goal_amt="1000000.0"] 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_fcretireage_plugin() The values available for template options are the same as the shortcodes above except you must change "sc_" to "op_". "large", 'op_custom_style' => "No", 'op_add_link' => "No", 'op_brand_name' => "", 'op_hide_resize' => "No", 'op_current_age' => "28", 'op_current_savings' => "16000.0", 'op_invest_amt' => "750.0", 'op_rate' => "5.5", 'op_goal_amt' => "1000000.0", '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:
  1. 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).
  2. When branding, the brand name will be added before "Retirement Age Calculator".
  3. If _custom_style is set to "Yes", the plugin will load dist/css/accurate-calculators-custom.css relative 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.
  4. The plugin is built and tested on HTML5/CSS3 pages.
  5. size (min-width): tiny: 150px, small: 200px, medium: 200px, large: 200px
  6. size (max-width): tiny: 250px, small: 300px, medium: 400px, large: 440px
  7. 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.
  8. Website developers can set a default currency sign and preferred date format by setting _currency and _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: 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: 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.
  1. Auto Loan Calculator - solves for several unknowns and creates a payment schedule.
  2. Loan Calculator - a general purpose loan calculator with amortization schedule and charts.
  3. Mortgage Calculator - optionally incorporates points and insurance and creates a payment schedule
  4. Retirement Age Calculator - answers, at what age will I be able to retire given my investment plan?
  5. Retirement Nest Egg Calculator - answers, what will be the value of my retirement fund when I retire?
  6. Retirement Savings Calculator - how much do I have to invest periodically to reach my retirement goal?
  7. Savings Calculator - calculates the results of regular savings and investing
Also New seven, free, Plus plugins with printable schedules.

屏幕截图:

  • Example of investment schedule showing investment dates and a detailed summary.
  • Creates three interactive charts for visualization.
  • A portion of the plugin's settings dialogue, as seen under *Appearance* -> *Widgets* page in WordPress's administration area.

升级注意事项:

Upgrading to v2.x from v1.x Added new configuration options so you can easily match your site's color choices. Improved responsiveness. Improved translations. Removed obsolete technology making for better long term reliability.

更新日志:

3.0 2.1.1 (unreleased development milestone) This unreleased development milestone is included in version 3.0. * Refactored the JavaScript and PHP into smaller functions and separate modules in preparation for future WordPress block support. 2.1 2.0