Advertisement
bowenac

NY Tax

Apr 3rd, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1.             foreach ( $rates as $key => $rate ) {
  2.             if ($rate['compound'] == 'yes')
  3.             continue;
  4.                 if ($state == 'NY' && $price > 17500)
  5.                     $ny = $price-17500;                
  6.                     $tax_amount = ( $ny * $rate['rate'] / 100 );
  7.                 else
  8.                     $tax_amount = ($price * $rate['rate'] / 100 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement