Skip to content

Instantly share code, notes, and snippets.

Florian Spier spierala

Block or report user

Report or block spierala

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
spierala / vat.js
Created Aug 12, 2014
node.js vat calculator usable in the console like this: node vat.js [netto]
View vat.js
var util = require('util');
VatCalculator = function (netto) {
this.netto = netto;
VatCalculator.prototype.calculate = function(parts) {
var vat = 0.19 * this.netto;
var brutto = Number(this.netto) + Number(vat);
util.puts("vat: " + vat);
You can’t perform that action at this time.