to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
Here's a problem from real life in early 2024. Let's say you're thinking about taking the plunge and getting an electric-powered vehicle. Whether it's because you want to be seen as someone who cares about the environment or it's because you really like the idea of having the power of instantaneous torque when you step on the accelerator, getting an EV is something you've decided to do.
But because the technology is changing so quickly and because electric vehicle prices are falling, you don't want to lock yourself into owning an electric vehicle. You're looking to lease one for a few years instead.
Sound plausible so far? Okay, let's get really specific. Let's say you've narrowed your options and are thinking about leasing a $38,990 Tesla Model 3, which has a down payment of $2,999. The lease payment is $299 a month for three years, and at the end of the lease term the car’s market value is projected to be about 67% of its original value. What is the effective interest rate you'll pay for this leasing deal?
That's not so easy a question to answer because even if you have the right formula to plug all these numbers into, because there's no straightforward way to rearrange that equation to simply solve it for the interest rate. You'll either have to use trial and error to get to that answer or you'll need to apply some advanced math and run through a series of calculations to get to a precise approximation.
Unless you're willing to trade a little accuracy to get to a still reasonably accurate result. There is a relatively simple equation that can calculate an approximate value for the interest rate, which we've built the following tool to do. If you've accessing this article on a site that republishes our RSS news feed, please click through to our site to access a working version of the tool.
The result of the tool should give you a reasonable estimate of the effective interest rate you're paying to take out this lease. For the default values in our leasing scenario, that result is 5.73%.
But if you have other numbers, by all means, take the tool for a test drive with them! And if you can get the actual lease interest rate, compare your results to see how close the approximation behind this got to the exact result!
Image credit: Tesla Model 3 (2023) by Kazyakurumaon Wikimedia Commons. Creative Commons CCO 1.0 DEED CC0 1.0 Universal .
Labels: personal finance, tool
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.