Skip to content

prosoxi.com

Attention in classroom

  • Programming
    • ASP / ASP.net
    • .htaccess
    • PHP
    • JavaScript – Ajax
    • Facebook
    • HTML – XHTML
    • MySQL
    • node js
    • CSS
    • SEO
    • Flash
  • Mobile / Tablet
    • ionic framework
    • Android
    • cordova
    • ios
  • Graphics
    • After Effects
  • OS
    • Windows
    • MAC
    • Linux
  • Network
    • Trixbox
    • Plesk
    • Dreambox
  • News
    • Hack
    • Tutorials
    • Tips & Tricks
    • promo codes

PHP add and remove Vat from Price

Posted byProsoxi.com Webmaster June 17, 2016June 17, 2016
function vat_add($price, $vat)
{
    $nett = $price;
    $gross = $nett * ($vat / 100) + $nett;
    return $gross;
}

function vat_remove($price, $vat)
{
    $gross = $price;
    $nett = $gross-($gross * ($vat / 100));
    return $nett;
}
Posted byProsoxi.com WebmasterJune 17, 2016June 17, 2016Posted inPHP, ProgrammingTags: gross, nett, PHP, vat

Post navigation

Previous Post Previous post:
CSS Magnific-Popup Blurred Background
Next Post Next post:
Performs a smooth page scroll to an anchor Jquery

Advertise

Whocallsme.gr Widget Lookup

June 2016
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« Feb   Jul »
prosoxi.com, Proudly powered by WordPress.