Put a calculator on your site
Add a free SumHub calculator to your website or blog. Your readers get live answers in their own currency, on a phone or a computer, without leaving your page.
1. Choose a calculator and its look
"Each reader's own" is worked out from their device's time zone and language. The currency changes only the symbol and number format; there are no exchange rates.
2. Try it
This is the calculator exactly as your readers will see it.
3. Copy the code into your page
Paste it where the calculator should appear. In WordPress, use a "Custom HTML" block; most other site builders have an "Embed" or "HTML" block.
<iframe
src="https://sumhub.app/embed/loan"
title="Loan calculator by SumHub"
loading="lazy"
sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"
style="display:block;width:100%;height:1300px;border:0"
></iframe>
<script>
window.addEventListener("message", function (e) {
if (e.origin !== "https://sumhub.app") return;
var d = e.data;
if (!d || d.type !== "sumhub:height" || typeof d.height !== "number" || !isFinite(d.height)) return;
var frames = document.getElementsByTagName("iframe");
for (var i = 0; i < frames.length; i++) {
if (frames[i].contentWindow === e.source) {
frames[i].style.height = Math.min(4000, Math.max(200, Math.ceil(d.height))) + "px";
}
}
});
</script>The rules
- It's free on any website, including business ones.
- Keep the "Calculator by SumHub" line and its link where readers can see them.
- Show the calculator as it is: don't cover, crop or change it or the numbers it shows.
- Don't suggest that SumHub recommends or works with your site, products or services.
- The results are estimates for information only, not financial advice. See our terms of use and disclaimer.
Your readers' privacy
- No cookies, no ads and no cookie banner. The calculator doesn't use Google Analytics or any other tracking service.
- The numbers readers type stay in their browser. They reach SumHub only if the reader opens the full calculator, which takes their numbers along so they can carry on.
- We count how often each calculator is shown and opened, without cookies. Like any website, SumHub receives technical information such as IP address and browser details; our privacy notice explains what we keep and for how long.
For your web developer
- The calculator only appears on pages served over HTTPS, or from
localhostwhile you test. If your site has a Content Security Policy, addhttps://sumhub.apptoframe-src. - The frame is sandboxed: it runs its own code and can open SumHub in a new tab, but it can't move or change your page.
- With "Resize to fit", the calculator sends your page one kind of message,
{ type: "sumhub:height", height }(in CSS pixels). The script checks that it comes fromhttps://sumhub.appand from that frame before resizing it. The calculator sends nothing else and listens to no messages. - Options go in the frame's address:
theme=darkortheme=auto(light is the default), andc=with a currency code such asUSD,EUR,GBPorINR. Anything else is ignored.
Questions
Want another calculator, or need a hand? Email hello@sumhub.app.