Skip to content

Commit

Permalink
fix demo and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bettysteger committed Oct 2, 2024
1 parent 55d8198 commit a488731
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h1 class="title">
<div class="columns">
<div class="column field">
<label class="label" for="income">
<span x-show="currentYear == options.year">Voraussichtliche</span> Einnahmen
<span x-show="currentYear <= options.year">Voraussichtliche</span> Einnahmen
</label>
<div class="control has-icons-left">
<input class="input" x-model.number="income" id="income" type="number" placeholder="30000" min="0" step="500">
Expand All @@ -101,7 +101,7 @@ <h1 class="title">
</div>
<div class="column field">
<label class="label" for="outgo">
<span x-show="currentYear == options.year">Voraussichtliche</span> Ausgaben
<span x-show="currentYear <= options.year">Voraussichtliche</span> Ausgaben
</label>
<div class="control has-icons-left">
<input class="input" x-model.number="outgo" id="outgo" type="number" placeholder="2000" min="0" step="100">
Expand Down Expand Up @@ -260,7 +260,7 @@ <h5 class="is-size-7 has-text-grey is-uppercase mr-2">
<p>
<a href="https:/hundert11/sv-steuer-rechner/blob/main/src/sv.js#L22" target="_blank" class="has-text-primary mr-1" title="Show code"><i class="fas fa-calculator"></i></a>
<b>Beitragsgrundlage SV =</b><br><i class="ml-5"></i>
Einkommen lt. ESt-Bescheid + bezahlte SV-Beiträge (Vorrauszahlungen)
Einkommen lt. ESt-Bescheid + bezahlte SV-Beiträge (Vorauszahlungen)
</p>
</div>
</article>
Expand Down
2 changes: 1 addition & 1 deletion src/sv.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { percentages, fixValues } from './sv-values.js';

// Beitrag = Beitragsgrundlage x Beitragssatz
// Beitragsgrundlage = Einkommen lt. EStB des jeweiligen Jahres, zuzügl. Hinzurrechnungsbeträge
// Hinzurrechnungsbeträge = Vorrauszahlungen (+ geleistete Nachzahlungen in dem Jahr?)
// Hinzurrechnungsbeträge = Vorauszahlungen (+ geleistete Nachzahlungen in dem Jahr?)
export function SVbeitrag(profit, options = {}) {
if(!profit) { return {toPay: 0}; }
options = Object.assign({}, defaultOptions, options);
Expand Down

0 comments on commit a488731

Please sign in to comment.