Skip to content
Advertisement

Math calculation laravel (netto-brutto)

I have code:

<div class="col-md-3">
<h4><i class="fa fa-hashtag"></i> Rechnung preis - Brutto €</h4>
<div class="form-group form-group-default">
<h5><strong>{{ $data->bedrag_rechnung_brutto }}</h5></strong>
</div>
</div>

But I have also another field Rechnung preis – Netto. What must be the code for calculate netto-brutto from bedrag_rechnung_brutto. It must be -19%.

Netto = brutto /1,19.

Advertisement

Answer

What is your question over here? You already answered it yourself?

$netto = $brutto/1.19;
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement