Skip to content

Commit f522a03

Browse files
author
Aaron Morris
committed
Merge branch 'master' of https://github.com/Morrisai/cppeiCalculator into master
# Conflicts: # yarn.lock
2 parents 3ba3746 + 8dec0c7 commit f522a03

7 files changed

Lines changed: 29 additions & 15 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# cppeiCalculator
2+
A calculator for figuring out when you will max out your cpp and ei contributions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"@material-ui/core": "^1.2.0",
77
"moment": "^2.22.2",
88
"react": "^16.4.0",
9-
"react-dom": "^16.4.0",
9+
"react-dom": "^16.4.2",
1010
"react-ga": "^2.5.3",
1111
"react-google-ad": "^1.0.2",
1212
"react-scripts": "1.1.4",

public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
work correctly both with client-side routing and a non-root public URL.
2020
Learn how to configure a non-root public URL by running `npm run build`.
2121
-->
22-
<title>CPP &amp; EI Calculator - When will I max Out my CPP and EI in 2020?</title>
22+
<title>CPP &amp; EI Calculator - When will I max Out my CPP and EI in 2022?</title>
2323
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
2424

2525
<meta property="og:url" content="https://eicppcalculator.com/" />
2626
<meta property="og:type" content="article" />
27-
<meta property="og:title" content="CPP &amp; EI Calculator - When will I max Out my CPP and EI in 2020?" />
27+
<meta property="og:title" content="CPP &amp; EI Calculator - When will I max Out my CPP and EI in 2022?" />
2828
<meta property="og:description" content="Try this calculator to roughly figure out when you'll stop paying into IE and CPP and get a nice little boost to your pay cheques." />
2929
<meta property="og:image" content="https://eicppcalculator.com/images/Maple-Leaf-by-Merlin2525.png" />
3030
</head>

public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"short_name": "CPP &amp; EI Calculator",
3-
"name": "CPP &amp; EI Calculator - When will I max Out my CPP and EI in 2018?",
3+
"name": "CPP &amp; EI Calculator - When will I max Out my CPP and EI in 2022?",
44
"icons": [
55
{
66
"src": "favicon.ico",

src/components/Form.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import Alert from './Alert';
2222
const styles = theme =>( {
2323
paper: {
2424
padding: '3rem',
25-
maxWidth: '75%',
25+
maxWidth: '90%',
2626
margin:'2rem auto',
2727

2828
"@media (max-width:500px)": {
@@ -44,11 +44,11 @@ const styles = theme =>( {
4444
},
4545
section:{
4646
marginTop:'2rem',
47-
maxWidth:'50%',
47+
maxWidth:'90%',
4848
margin: 'auto' ,
4949
textAlign:'center',
5050

51-
"@media (max-width:500px)": {
51+
"@media (max-width:700px)": {
5252
maxWidth:'100%',
5353
padding:'1rem'
5454
}
@@ -205,7 +205,7 @@ class Form extends React.Component{
205205
const { classes } = this.props
206206

207207
return(
208-
<div className={classes.root}>
208+
<div className={classes.root} id="calculator">
209209
<section className={classes.section}>
210210
<Typography variant="display2" gutterBottom >Calculator</Typography>
211211
<Typography variant="body1" >If you get paid a regular amount every so often and know how much you will make this year use the first field otherwise use Year To Date if you want to see how bonuses or other irregular payments affect the timing</Typography>

src/components/Header.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import Typography from '@material-ui/core/Typography';
33

44
import { withStyles } from '@material-ui/core/styles';
5-
import { Paper } from '@material-ui/core';
5+
import { Button, Paper } from '@material-ui/core';
66

77
import Model from '../model/model';
88

@@ -18,10 +18,15 @@ const styles = theme => ({
1818
padding:'1rem',
1919
}
2020

21+
},
22+
23+
button:{
24+
textAlign:'center',
25+
margin: '0 0 1rem 0',
2126
},
2227
text:{
2328
color: theme.palette.primary.contrastText,
24-
maxWidth:'50%',
29+
maxWidth:'75%',
2530
margin: '1rem auto',
2631

2732
"@media (max-width:500px)": {
@@ -53,7 +58,14 @@ class Header extends React.Component {
5358
<Typography variant="display3" gutterBottom className={classes.h1}>
5459
When will I max out my CPP and EI contributions?
5560
</Typography>
61+
<Button className={classes.button} size="small" variant="contained" href="#calculator">
62+
Skip to calculator
63+
</Button>
64+
5665
<div >
66+
<Typography gutterBottom className={classes.text}>Have you ever wondered why part way through the year all of a sudden you stop paying EI and CPP premiums on each paycheque and instead just get to pocket that money?
67+
For some people it happens very early in the year and for some people it might happen near the end or not at all. Once you max out, you simply stop paying for those extra deductions and your pay cheque gets a nice little bump.
68+
</Typography>
5769
<Typography gutterBottom className={classes.text}>The Canadian government has set maximums on how much an invidual can contribute to the CPP (Canadian Pension Plan) and to EI (Employment Insurance).
5870
Once you have reached the maximum contribution for the year you will see an increase on your net pay going forward as these deductions will no longer be applied.
5971
</Typography> <Typography gutterBottom className={classes.text}>

src/model/model.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/// DATA FROM: https://www.canada.ca/en/revenue-agency/services/tax/businesses/topics/payroll/payroll-deductions-contributions/canada-pension-plan-cpp/cpp-contribution-rates-maximums-exemptions.html
22
// and from https://www.canada.ca/en/employment-social-development/programs/ei/ei-list/ei-employers/2019-maximum-insurable-earnings.html
33
const Model = {
4-
cppMaxEarning : 58700,
4+
cppMaxEarning : 64900,
55
cppExemptAmount : 3500,
6-
cppPerc : 0.0525,
7-
maxContribution: 2898.00,
6+
cppPerc : 0.0570,
7+
maxContribution: 3499.80,
88

99

10-
eiMaxEarning : 54200,
10+
eiMaxEarning : 60300,
1111
eiPerc : 0.0158,
12-
year: 2020
12+
year: 2022
1313
}
1414

1515
export default Model

0 commit comments

Comments
 (0)