-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
213 lines (166 loc) · 8.21 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html lang = "en">
<head>
<meta http-equiv="refresh" content="0; url=https://pay.checklyhq.com/">
<center><img src="checkly-logo-dark.svg" alt="Checkly logo"></center>
<title> Checkly Pay Calculator </title>
<link href="StyleSheet.css" rel="stylesheet">
</head>
<body onload="calculate()">
<h1> Pay Calculator </h1>
<div class= "formstyle">
<form onsubmit="return false;" name = "form1">
<div class="entry">
<label class="entry-label">Role</label>
<select class="entry-dropdown" name="role" id="role" onChange="calculate()">
<option value="Engineering">Engineering</option>
<option value="Design">Design</option>
<option value="Product Management">Product Management</option>
<option value="Support Engineer">Support Engineer</option>
<option value="SDR">SDR</option>
<option value="Account Executive">Account Executive</option>
<option value="Customer Solutions">Customer Solutions</option>
<option value="People">People</option>
<option value="Operations">Operations</option>
<option value="Product Marketing">Product Marketing</option>
<option value="Growth Marketing">Growth Marketing</option>
<option value="DevRel">DevRel</option>
</select>
</div>
<br>
<br>
<div class="entry">
<label class="entry-label">Seniority</label>
<select class="entry-dropdown" name="seniority" id="seniority" onChange="calculate()">
<option value="Junior">Junior</option>
<option value="Intermediate">Intermediate</option>
<option value="Senior">Senior</option>
<option value="Staff">Staff</option>
<option value="Lead">Lead</option>
<option value="Director">Director</option>
</select>
</div>
<br>
<br>
<div class="entry">
<label class="entry-label">Performance</label>
<select class="entry-dropdown" name="performanceFactor" id="performanceFactor" onChange="calculate()">
<option value="0.9">Learning</option>
<option value="1">Comfortable</option>
<option value="1.1">Thriving</option>
</select>
</div>
<br>
<br>
<div class="entry">
<label class="entry-label">Location</label>
<select class="entry-dropdown" name="locationFactor" id="locationFactor" onChange="calculate()">
<option value="0.9">Argentina</option>
<option value="1">Austria</option>
<option value="1">Belgium</option>
<option value="0.9">Bulgaria</option>
<option value="1">France</option>
<option value="1">Germany</option>
<option value="1">Ireland</option>
<option value="0.9">Italy</option>
<option value="1">Netherlands</option>
<option value="0.9">Poland</option>
<option value="0.9">Portugal</option>
<option value="0.9">Romania</option>
<option value="0.9">Serbia</option>
<option value="0.9">Spain</option>
<option value="1">Sweden</option>
<option value="0.9">Türkiye</option>
<option value="0.9">Ukraine</option>
<option value="1">UK</option>
<option value="1.2">USA</option>
<option value="1.5">USA: Austin</option>
<option value="1.5">USA: Boston</option>
<option value="1.5">USA: Los Angeles</option>
<option value="1.5">USA: New York City</option>
<option value="1.5">USA: San Francisco</option>
<option value="1.5">USA: Seattle</option>
<option value="1.5">USA: Washington</option>
</select>
</div>
<br>
<br>
<label> Annual salary: EUR</label> <label id="SalaryInEUR" ></label> <label> / USD</label> <label id="SalaryInUSD" ></label>
<div id="Message"> </div>
</form>
</div>
<br>
<p> Check out our <a href="https://www.notion.so/checkly/Our-Pay-Calculator-How-we-pay-our-team-f3c42feab82b444a9cbf8fed545cb727">Pay Calculator documentation</a>. </p>
<p> If you have questions about our Pay Calculator, please reach out to <a href="https://www.linkedin.com/in/kaylie-boogaerts-72167040/">Kaylie Boogaerts on LinkedIn</a>.</p>
</body>
</html>
<script>
function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
function calculate() {
var role = document.getElementById("role").value;
var seniority = document.getElementById("seniority").value;
var locationFactor = document.getElementById("locationFactor").value;
var performanceFactor = document.getElementById("performanceFactor").value;
var salaries= [
{role:"Engineering", seniority:"Junior", salary: "62250"},
{role:"Engineering", seniority:"Intermediate", salary: "83000"},
{role:"Engineering", seniority:"Senior", salary: "103750"},
{role:"Engineering", seniority:"Staff", salary: "146250"},
{role:"Engineering", seniority:"Lead", salary: "117000"},
{role:"Design", seniority:"Junior", salary: "55080"},
{role:"Design", seniority:"Intermediate", salary: "73440"},
{role:"Design", seniority:"Senior", salary: "91800"},
{role:"Product Management", seniority:"Junior", salary: "59250"},
{role:"Product Management", seniority:"Intermediate", salary: "79000"},
{role:"Product Management", seniority:"Senior", salary: "98750"},
{role:"Product Management", seniority:"Staff", salary: "133000"},
{role:"Support Engineer", seniority:"Junior", salary: "48750"},
{role:"Support Engineer", seniority:"Intermediate", salary: "65000"},
{role:"Support Engineer", seniority:"Senior", salary: "81250"},
{role:"SDR", seniority:"Junior", salary: "36750"},
{role:"SDR", seniority:"Intermediate", salary: "49000"},
{role:"SDR", seniority:"Senior", salary: "61250"},
{role:"Account Executive", seniority:"Junior", salary: "68940.29"},
{role:"Account Executive", seniority:"Intermediate", salary: "91920.38"},
{role:"Account Executive", seniority:"Senior", salary: "114900.48"},
{role:"Customer Solutions", seniority:"Junior", salary: "63293"},
{role:"Customer Solutions", seniority:"Intermediate", salary: "84391"},
{role:"Customer Solutions", seniority:"Senior", salary: "105489"},
{role:"Customer Solutions", seniority:"Staff", salary: "141964"},
{role:"People", seniority:"Junior", salary: "46500"},
{role:"People", seniority:"Intermediate", salary: "62000"},
{role:"People", seniority:"Senior", salary: "77500"},
{role:"People", seniority:"Director", salary: "121306"},
{role:"Operations", seniority:"Junior", salary: "43500"},
{role:"Operations", seniority:"Intermediate", salary: "58000"},
{role:"Operations", seniority:"Senior", salary: "72500"},
{role:"Operations", seniority:"Director", salary: "113000"},
{role:"Product Marketing", seniority:"Junior", salary: "62250"},
{role:"Product Marketing", seniority:"Intermediate", salary: "83000"},
{role:"Product Marketing", seniority:"Senior", salary: "103750"},
{role:"Growth Marketing", seniority:"Junior", salary: "62250"},
{role:"Growth Marketing", seniority:"Intermediate", salary: "83000"},
{role:"Growth Marketing", seniority:"Senior", salary: "103750"},
];
for (var r in salaries) {
if (salaries[r]["role"] == role && salaries[r]["seniority"] == seniority ) {
// The following ensures that Account Executive location factor cannot go above 1.2, e.g. even when in NYC.
if (role === "Account Executive") {
locationFactor = Math.min(1.2, locationFactor)
}
console.log("locationFactor: " ,locationFactor)
var salaryInEUR = salaries[r]["salary"] * performanceFactor * locationFactor;
console.log("salaries: " ,salaries[r])
document.getElementById('SalaryInEUR').innerHTML = numberWithCommas(Math.trunc(salaryInEUR));
document.getElementById('SalaryInUSD').innerHTML = numberWithCommas(Math.trunc(salaryInEUR * 1.087898));
document.getElementById('Message').innerHTML = "";break
} else{
document.getElementById('SalaryInEUR').innerHTML = "N/A";
document.getElementById('Message').innerHTML = "Unfortunaly we don't have this combination of role and seniority, so we can't give you a salary amount.";
document.getElementById('SalaryInUSD').innerHTML = "N/A";
}
}
}
</script>