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
When it comes to buying stuff that comes in different size packages, it often makes more sense to buy a particular item in a bigger package than in a smaller one.
The reason why comes down to that item's unit price for its different sized packages - how much it costs for a given standard quantity. For example, we could buy a 34 fluid ounce package of ultra-concentrated Downy fabric softener for $7.83 from Amazon, which works out to be $0.23 per fluid ounce.
Or we could buy a 6-pack of the same bottles of fabric softener from Amazon for $36.76, which drops the unit price for the exact same item down to $0.18 per fluid ounce, making it a potentially better deal.
We say "potentially better" because there are other things that might make the same item in a smaller size more desirable. For instance, we might not have adequate storage space for a 6-pack of 34 fl. oz. containers (204 fluid ounces in all), which would make having more than one a real inconvenience. Or in the case of perishable goods, like those ginormous containers of mayonnaise that you see at warehouse club stores, the contents of a bigger container might spoil before we can use it all, which would mean that our money would go to waste as well.
And speaking of money, we may have some budgetary issues in that we might have $7.86 available to buy the smaller container, but not $36.76 to buy the greater quantity. That's not so much to say that we don't have $36.76, but more to say that we'd rather spend the difference on something other than making our fabrics softer.
All that however is small potatoes compared to the potential unit price distorting power of coupons! Here, thanks to those glossy paper inserts you're most likely to find in the Sunday edition of your local newspaper, the discount you might get on a smaller item might more than make up for the discount you might get by buying bulk quantities!
We'll test that idea in the tool below. Here, we'll plug in our Downy default data, then consider what happens when we have a coupon that provides a $1.00 savings per package, such as we might find on the Downy promotions web site. Would it still be more economical to buy the greater quantity? We'll answer below the tool, which can easily be altered to consider whatever product cost and quantity comparison you might actually want to do....
For our fabric softener example, with the $1.00 off coupon, we find that the 6-pack is still the better buy, as it saves 2.6 cents per fluid ounce over buying the single 34 fluid ounce container. But without the coupon, the 6-pack is an even better buy, saving 5.0 cents per fluid ounce over buying the single container.
Having closed the gap by that much, we wondered what kind of coupon discount it would take to make the smaller container have the better unit price. Playing with the tool, we found that a discount of $2.05 marked the point where the smaller package would have a slightly lower unit price. More than that amount and it would be the better deal.
While that's an unlikely amount to find printed on a coupon, you might get pretty close to that number if the store where you might buy the item you're purchasing is one that doubles or triples the face value of coupons as part of a sales promotion.
It's no wonder that so many different coupon services have taken off in recent years!
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.