Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #12552
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Math Formula Question - Need Ideas |
| Date | 2014-01-05 13:15 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <lac7fi$d9i$1@dont-email.me> (permalink) |
| References | <XnsA2ABA6A53901Farbpenyahoocom@78.46.70.116> <5M1yu.164337$as5.106525@en-nntp-14.dc1.easynews.com> <slrnlcj75r.21fn.knock_yourself_out@vps.jonz.net> |
On 1/5/2014 12:56 PM, Allodoxaphobia wrote: > On Sat, 04 Jan 2014 19:33:31 -0500, Richard Damon wrote: >> On 1/4/14, 7:26 PM, Adrienne Boswell wrote: >>> I have a math question to which I can't find the answer. Here is the >>> scenario: >>> >>> Someone goes to a store and has $100.00 worth of items. The merchant >>> gives the customer a 10% discount, so only $90.00 is sent to the bank. >>> Of the original amount, $10.00 goes to the customer for the discount, >>> $80.00 goes to the merchant, $10.00 goes for a processing fee. But those >>> amounts have to be calced on the original amount, not what the bank got. >>> I need a formula to find the original amount if I have the percentage >>> (10%) and the amount the bank got ($90.00). I know in my head that the >>> original amount is $100.00, but I have to do it programatically. >>> >>> I know this is probably dead simple, but I just can't get my head around >>> it. >>> >>> Thanks in advance. >>> >> 10% is 0.1 >> >> You got the $90 by multiplying the original $100 by (1-0.1) to get $90, >> so you can divide the $90 by (1 - 0.1) to get the original $100 > > Then, state and local taxes are usually calc'd on the original price, > not the discounted price. > Incorrect. State and local taxes are calculated on the actual (discounted) selling price. At least that's so in the United States. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Math Formula Question - Need Ideas Adrienne Boswell <arbpen@yahoo.com> - 2014-01-05 00:26 +0000
Re: Math Formula Question - Need Ideas Richard Damon <Richard@Damon-Family.org> - 2014-01-04 19:33 -0500
Re: Math Formula Question - Need Ideas Allodoxaphobia <knock_yourself_out@example.net> - 2014-01-05 17:56 +0000
Re: Math Formula Question - Need Ideas Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-05 13:15 -0500
Re: Math Formula Question - Need Ideas John Smith <johnsmithjsm@live.com> - 2014-01-07 14:57 +0000
Re: Math Formula Question - Need Ideas The Natural Philosopher <tnp@invalid.invalid> - 2014-01-05 00:37 +0000
Re: Math Formula Question - Need Ideas Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-04 20:20 -0500
Re: Math Formula Question - Need Ideas Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-05 00:54 +0000
Re: Math Formula Question - Need Ideas Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-04 20:22 -0500
Re: Math Formula Question - Need Ideas Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-05 16:40 +0000
Re: Math Formula Question - Need Ideas Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-05 13:16 -0500
Re: Math Formula Question - Need Ideas Adrienne Boswell <arbpen@yahoo.com> - 2014-01-05 23:09 +0000
Re: Math Formula Question - Need Ideas Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-05 18:53 +0100
Re: Math Formula Question - Need Ideas Adrienne Boswell <arbpen@yahoo.com> - 2014-01-05 22:56 +0000
Re: Math Formula Question - Need Ideas Jerry Stuckle <jstucklex@attglobal.net> - 2014-01-05 18:11 -0500
Re: Math Formula Question - Need Ideas Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-06 20:47 +0100
csiph-web