Skip to content

Instantly share code, notes, and snippets.

@Webklex
Created March 17, 2014 15:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Webklex/9601610 to your computer and use it in GitHub Desktop.
Save Webklex/9601610 to your computer and use it in GitHub Desktop.
Mehrwertsteuer mit PHP berechnen
<?php
$netto = 1.50;
$mwsatz = 1.19; //19%
$brutto = $netto * $mwsatz;
$mwst = $brutto - $netto;
echo 'OUTPUT:'."\n";
echo 'MWST '.$mwst."\n";
echo 'NETTO '.$netto."\n";
echo 'BRUTTO '.$brutto;
?>
OUTPUT:
MWST 0.285
NETTO 1.5
BRUTTO 1.785
LINK: https://eval.in/121613
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment