-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from miraisolutions/develop
1.2.0 release
- Loading branch information
Showing
29 changed files
with
319 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
^Meta$ | ||
^data$ | ||
^doc$ | ||
^man-roxygen$ | ||
^Meta$ | ||
|
||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
|
||
Dockerfile | ||
cloudbuild.yaml | ||
man-roxygen | ||
inst/application/data/taxdata | ||
^Dockerfile$ | ||
^cloudbuild\.yaml$ | ||
^inst/application/data/taxdata$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: SmaRP | ||
Title: SmaRP: Smart Retirement Planning | ||
Version: 1.1.1 | ||
Version: 1.2.0 | ||
Authors@R: c(person("Gabriel", "Foix", role = c("aut", "cre"), | ||
email = "[email protected]"), | ||
person("Francesca", "Vitalini", role = c("aut"), | ||
|
@@ -14,6 +14,9 @@ Authors@R: c(person("Gabriel", "Foix", role = c("aut", "cre"), | |
Description: Shiny App to calculate total pension fund. | ||
Depends: R (>= 3.5.0) | ||
License: GPL-3 | ||
URL: https://mirai-solutions.ch, | ||
https://github.com/miraisolutions/SmaRP#readme | ||
BugReports: https://github.com/miraisolutions/SmaRP/issues | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Roxygen: list(markdown = TRUE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<!--# The Swiss social security system, considered as one of the most robust, is based on a three-pillar regime. | ||
# The first Pillar, common to most developed countries, is a state-run pay-as-you-earn system with minimum benefits. | ||
# The voluntary contribution (Pillar III) is a privately-run, tax-deductible insurance fund. | ||
# At the heart of the Swiss system is the so-called Pillar II, a compulsory, tax-deductible company occupational pension insurance fund. | ||
# Voluntary additional Pillar II buy-ins are regulated but allow for benefits improvement at retirement age while reducing the tax burden during the working career. | ||
# The voluntary contribution (3rd Pillar) is a privately-run, tax-deductible insurance fund. | ||
# At the heart of the Swiss system is the so-called Second Pillar, a compulsory, tax-deductible company occupational pension insurance fund. | ||
# Voluntary additional second Pillar buy-ins are regulated but allow for benefits improvement at retirement age while reducing the tax burden during the working career. | ||
# The complexity is further increased by a municipality-dependent taxation. | ||
# Altogether this calls for an early-stage conscious approach towards retirement planning. | ||
# However, it is not straight-forward to assess effects of elements such as early retirement, moving to a different canton or applying a different voluntary pension schema. | ||
|
@@ -32,8 +32,9 @@ containers](https://www.docker.com/resources/what-container)) and can be | |
accessed at https://mirai-solutions.ch/apps/smarp/. | ||
|
||
The (development version of) **SmaRP** can also be served locally by installing the package from GitHub | ||
<!-- argument build_vignettes not available anymore (r-lib/remotes#353), build_opts = "" for a full installation including vignettes --> | ||
``` r | ||
devtools::install_github("miraisolutions/SmaRP", build_vignettes = TRUE) | ||
devtools::install_github("miraisolutions/SmaRP", build_opts = "") | ||
``` | ||
and running | ||
``` r | ||
|
@@ -43,11 +44,11 @@ SmaRP::launch_application() | |
|
||
## Details and key features | ||
|
||
The evolution of the total retirement fund over time is computed by projecting the value of the occupational pension fund (Pillar II), the private pension fund (Pillar III) and the tax relief, thus deriving their contributions at the desired retirement age. | ||
The evolution of the total retirement fund over time is computed by projecting the value of the occupational fund (2nd Pillar), the private fund (3rd Pillar) and the tax relief, thus deriving their contributions at the desired retirement age. | ||
|
||
*Contributions to Pillar II* are calculated from the salary and any additional voluntary purchases. | ||
*Contributions to the second Pillar* are calculated from the salary and any additional voluntary purchases. | ||
|
||
*Contributions to Pillar III* are fully voluntary and repeated every year until retirement. | ||
*Contributions to the third Pillar* are fully voluntary and repeated every year until retirement. | ||
|
||
*Tax savings* are built as an additional fund where tax relieves from a certain year are used as contributions for the next. Tax relieves are calculated using an approximation of the given gross salary and other factors including: residence, civil status, number on kids, etc. | ||
|
||
|
@@ -64,8 +65,8 @@ The evolution of the total retirement fund over time is computed by projecting t | |
- Constant interest rates are assumed throughout the working life. | ||
- Inflation is not taken into account, although it can be proxied using the salary growth rate input. | ||
- The retirement plan is valid for employees only, i.e. persons whose main income is a salary. Self-employed people do not belong to this category. | ||
- The publicly managed pay-as-you-go system (Pillar I) is not considered. | ||
- All generated tax benefits are 100% reinvested as an additional fund, interpreting the same return as the private pension fund. | ||
- The publicly managed pay-as-you-go system (1st Pillar) is not considered. | ||
- All generated tax benefits are 100% reinvested as an additional fund, interpreting the same return as the private fund. | ||
- In case of married couples with double income, the combined amount of all variables should be entered and a 50% income distribution is assumed. | ||
|
||
|
||
|
@@ -97,6 +98,6 @@ Legal parameters in **SmaRP** are defined in [SmaRP/inst/application/global.R](h | |
|
||
While **SmaRP** was developed under the utmost care and diligence, Mirai Solutions does not guarantee for its accuracy and correctness. In addition, **SmaRP** is based on assumptions and projections (explained in a section above and in the PDF report) and as such computed figures should be understood as general references and do not hold any legal value. | ||
|
||
Besides standard unit tests at the functional level, results from the **SmaRP** web app have been checked against other online free sources for Pillar II and III and tax calculators. | ||
Besides standard unit tests at the functional level, results from the **SmaRP** web app have been checked against other online free sources for second, third Pillars and tax calculators. | ||
|
||
To keep testing and improving **SmaRP**, we encourage users to get back to us! Your feedback is always highly appreciated. You can use the issue tracker on GitHub to suggest enhancements or report problems, and reach out via email at [email protected] for any questions and comments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.