var savings, original_cost, costs_left;
function setUpTangle () {
var element = document.getElementById("example");
var tangle = new Tangle(element, { initialize: function () { this.num_people1 = 50; this.num_people2 = 50; this.num_people3 = 50; this.num_people4 = 50; this.price1 = 0; this.price2 = 15; this.price3 = 25; this.price4 = 39; this.percent = 3; this.server_costs = 100; this.lump_costs = 100; this.btw = 21;
}, update: function () { this.income = this.num_people2*this.price2 + this.num_people3*this.price3 + this.num_people4*this.price4; this.income_after_btw = this.income*(1-this.btw/100); this.solid_costs = this.server_costs + this.lump_costs ; this.var_costs = this.income_after_btw * (this.percent/100); this.total_costs = this.solid_costs + this.var_costs; this.total_figure = this.income_after_btw - this.total_costs } });
return tangle }
This is a reactive bookkeeping app made with tangleJS.
You can click and drag everything that is bold.
If people use a free plan.
If people use a $ plan.
If people use a $ plan.
If people use a $ plan.
If server costs are $.
If the payment system has lump cost $.
If payment system takes % variable cost.
If total taxes on product are %.
Then the balance sheet will be something like this:
Total income:
After VAT :
Solid costs:
Variable costs:
Total costs:
Total earnings per month for two people:
