OScar.
← Blog

2 December 2026 · 23 min read

Spreading the rent, payday, and the last day

Bookkeeping learned a lot in one day. Accruals: a cost paid in advance spread over the months it belongs to. Swedish payroll: a month's pay worked out from Skatteverket's own tax tables, booked as one voucher, with a payslip, the employer return as Skatteverket's file, and the net pay marked paid from its bank line. By night, sick pay and vacation, the days left at a year's end paid out, the final

A desk with an open pay envelope and a folded payslip, a printed table of numbers under a magnifying glass, and a calendar strip with a coin in each square behind them.

Pay a year's rent in January and the books, left alone, say January was a very expensive month and the other eleven were free. They were not. This morning Bookkeeping learned to spread a prepaid cost over months, and that closed the assets-and-accruals part of the books. In the afternoon it took its first step into something with many more rules: Swedish payroll in bookkeeping, from the tax tables to the file Skatteverket's e-service takes.

Start from the voucher

An accrual never comes out of nowhere: there is always a receipt, an invoice or a bill behind it. So a schedule starts from the voucher that booked it. Open the voucher, and beside a line that can be spread there is now "Spread over months…". Press it and a short form asks what it is ("Rent 2027"), how much of the line, the first month and how many months. The amount is split into equal shares to the öre, and the last öre evens out so the months add up exactly.

If the rent was booked straight onto the rent account, registering the schedule moves it, on the receipt's own day, to an account for costs paid in advance (1790 is proposed, and the more specific ones for rent, leasing, insurance and interest are there to pick). If it already sits on such an account, nothing is moved and you say which cost account each month goes to. An income works the same way, with 2970, prepaid income, proposed.

Under K2, Swedish small-company rules allow amounts under 7,000 kronor not to be spread at all, as long as you do it the same way every year and such amounts don't add up to something that matters. The form says so as a note under K2. It never decides it for you.

One press, one voucher, and every line knows where it came from

A new page, Accruals, sits right under Assets in the sidebar. It lists each schedule with what it has released and what is left, and below that the same kind of run the depreciation has: pick a month with the arrows, see exactly what is due schedule by schedule, and press "Book accruals through November". One voucher, dated the month's last day, two lines per schedule.

The detail I like is in those lines. Each one reads like "Rent 2027 (A 12)": the schedule's name and the voucher it came from. Swedish guidance lets a voucher the company makes itself point to where the original record is kept instead of repeating it, and this is that pointer, on every line. The original receipt stays where it always was, filed with its voucher.

The VAT is left alone, and on purpose. It was booked once, with the receipt, so the move and every monthly release are marked as outside the VAT return. Without that mark, a release on a sales account would have quietly counted the sale a second time.

Taken back carefully

Mistakes happen, so everything here can be taken back, in an order that keeps the books whole. A run is taken back newest first, and its months simply wait to be released again. A schedule can be taken back while none of it has been released; its move is reversed and the line is free again. And while a schedule stands on a voucher, that voucher can't be corrected by hand. Otherwise the schedule would keep releasing money that no longer exists.

A year also waits for its accruals, as it already does for depreciation: it can't be closed, locked past its end or have its VAT return approved over it while some of its months are still to be released.

The system documentation catches up

The books keep a written description of how they are kept, the system documentation the law asks for. Its chapter on how each part reaches the ledger had no word yet on fixed assets, even though the register has been booking depreciation, sales and write-downs for a few days. Now it has a part for fixed assets and a part for accruals, both in Swedish and English. The accruals part says plainly what the run's vouchers are and where their originals live, and the list of OScar's own changes records today's.

Small things about accruals

  • The engine's change had two careful reads before it went in. The first found real dead ends: a company with more than 250 schedules could never have booked a run, a year whose VAT was already approved could have been given a schedule it could never release, and rent paid in December for next year could never have been taken back once the old year closed. All three are fixed: a run now takes 250 at a time and the next press takes the rest.
  • The second read caught one line out of place that would have stopped the whole change from going in. It was moved before anything was applied.
  • Every check of the books' database ran red before the change and green after, nearly 1,500 of them, 88 of them new for accruals.
  • The nightly deadlines job did its first-of-the-month round exactly as planned: November's bank reconciliations went into Tasks, and a paid supplier's bill got its tick.
  • The Swedish words came in with the English ones: periodiseringar, förutbetald kostnad, hänvisningsverifikation.

A tidy-up first

Four pieces of work had landed in a row without anyone stepping back to look at them together, so before payroll came a cleanup. Two fresh pairs of eyes read everything from the last few days. Most of what they found was the same small thing written twice, now written once. A few were real: taking back a run on a locked day used to suggest picking "a later date", which never exists for a take-back. It now says the day is locked and what to do about it. A copy of the asset register for an earlier year now shows a write-down that was taken back later on the account it was actually booked on.

Payroll, the first part

Payroll comes as a new page, Payroll (Lön), under Accruals. First the company says from which day it is registered as an employer, and who Skatteverket should contact about the returns. Then the people it pays: a name, the personal identity number, the monthly salary and how their tax is withheld, by a tax table or at a percentage.

A pay run starts from the month. Everyone employed on the pay day is there with their salary, and you can add a row for a bonus or a deduction before tax. Then "Work it out" shows the whole month before anything is booked: gross pay, the tax, the net pay and what the employer pays on top, person by person. "Book the pay run" books exactly that, as one voucher: each person's pay on the wage account, the tax withheld, the net pay still to be paid out, and the employer's contributions. The run's summary is kept with the voucher as its document.

Read at the source, not remembered

Payroll is all rules, so every number comes from where Skatteverket publishes it. The tax comes from Skatteverket's own monthly tables for 2026, kept exactly as the file was published, and the tests check them against the printed tables row by row. The employer's contributions follow the birth year at this year's rates: 31.42 percent as a rule, less for people past their 67th year, and from April the lower rate for young people on their first 25,000 kronor a month. A month whose rates have not been published yet is refused with a reason rather than guessed. 2027's tables come in December, and they will be read the same way.

The employer return comes out as the XML file Skatteverket's e-service takes, checked against Skatteverket's own schema before anyone uploads it. A month with no pay still gets its zero return, which Skatteverket wants every month you are registered. Each month's due date (the 12th, the 17th in January and August, moved past weekends and holidays) goes into Tasks. Each person gets a payslip as a PDF.

Careful with the personal numbers

A payroll holds personal identity numbers, so they are kept locked away and are only opened to write the return's file or a payslip. Everywhere else a number shows as its birth date and four dots, the way Swedish forms usually mask it. Before anything went live, a second reader pointed out that the birth date and the last four digits together are the whole number. So only the birth date stays readable now, because the contributions and the tax table need it. It's the kind of catch you want before the first real number goes in, not after.

A run that went wrong is taken back from the Payroll page and nowhere else, and the run and its voucher can never disagree about whether it stands. The database change behind all this was read three times before it went in. The first read found a real bug: the employer could never actually be saved. Fixed, read again, then applied.

Small things

  • My own company is not an employer and pays no salary, so none of this touches my books. The 3:12 rules for small companies stopped requiring the owner to take a minimum salary this year, which is part of why.
  • Every check of the books' database ran red before the change and green after, now over 1,500 of them.
  • The Swedish words came with the English ones: lönekörning, lönespecifikation, arbetsgivardeklaration, skatteavdrag.

Payday, booked

In the evening the pay went out. A run books each person's net pay as owed, and now that debt gets paid off the way a supplier's bill does. There are two ways in. When the bank's line comes in, its card in the inbox offers the net pay it can be: one person, or everyone in the run who is still unpaid, because a bank's salary file is often a single line. Pick one and the voucher is drawn for you: the bank on one side, the net pay owed on the other, with the run's summary as its document. Nothing to type. Or, on the Payroll page, each run now lists its people with their net pay and whether it is paid, and "Mark as paid…" books it by hand, from the company's cash or bank accounts.

Three rules keep it honest, and they came straight from the decisions I answered today. The amount is exactly the net pay; a part payment or a bank fee is an ordinary voucher. The day must be on or after the pay day and inside the run's month, because Skatteverket reports pay in the month it is actually paid. If the money really left on the 24th, the run itself should say so. And the tax and the employer's contributions stay out of it: they go to the tax account with the return.

When a bank line has exactly one unpaid person's amount and names them in its text, the inbox's list ticks it as ready, and "Post what is ready" books it with the rest. A line that could be two people, or one person and a whole run, is left for a person to open.

Taking things back, the sturdy way

A payment can be marked unpaid again, from its run, and the bank line it came from waits in the inbox once more. A run can only be taken back once none of its pay is still standing as paid. Before any of this was built, an older weak spot was closed: a few places that take something back (an invoice's or a bill's payment, a bill's cost, the asset and accrual runs) now check the state of what they take back, so the only way to undo them is the way they were meant to be undone.

Small things about payday

  • Both changes to the engine were read twice by a second reader before they went in. The most useful find: the payment first recognised the account it pays off by the amount on it, and a run whose tax happened to equal its net pay could have pointed it at the wrong account. Now each run remembers which account its net pay is owed on.
  • The pages were read twice too. One find was a form that refused your second payment until you reloaded. Another: the page could draw a payment the engine would then refuse. Now the page says why before you press.
  • The database checks went from red to green once more: 1,603 of them now.
  • New Swedish words: betald nettolön, markera nettolön som betald, alla obetalda.

A sick day, and the summer off

By night payroll learned the two things every employer meets in the first month: someone is sick, and someone takes their summer holiday. Both have rules in law, so I read the sick pay act and the Annual Leave Act at the source first, then answered thirteen questions before a line was built.

In a pay run, each person now has "Add days away": a row with Sick, Unpaid leave or Vacation and its first and last day. Days are settled in the run that names them, each day only once, and in arrears: a cold at the end of November goes into December's pay. "Work it out" shows the rows the days make, under the person's name, before anything is booked.

What a sick day costs, by the act

For the first fourteen days the employer pays sick pay, 80 percent of the pay lost, less one qualifying deduction of a fifth of a week's sick pay. A sickness that starts again within five days carries on the same period, with no second deduction, which is how Försäkringskassan counts it too. After ten such deductions in twelve months there are no more. From the fifteenth day Försäkringskassan pays, the salary for those days is deducted, and a task appears in Tasks to report the sickness to them within a week.

The act leaves one thing open: what a day of a monthly salary is worth. That is a collective agreement's business, so it was my call. A workday is 12/260 of the monthly salary, a calendar day from day fifteen 12/365, and a month never has more taken off than its salary. Sick pay goes on its own account, so the year's sick pay is one number away.

Only the dates and the word "sick" are kept. Never a reason, never a doctor's note. Those are the employer's papers, and a health detail has no business in the books. The privacy page says so too.

Vacation, the same pay and a little more

With a monthly salary and no agreement, the law's same-pay rule applies: the salary simply carries on, and each paid vacation day adds 0.43 percent of it. Each person has a register now: paid days earned in the year before (from 1 April), days without pay for someone who just started, and paid days above twenty saved for up to five years if they want to. For a person employed before OScar there's a place to type what was left. When one run pays for more than twenty days at once, like a whole July, the extra is taxed by Skatteverket's one-off table, as the rules say.

And then the year-end side: the vacation liability. On any month's last day, the Payroll page works out what every person has earned and not yet taken, and the employer's contributions on it. One press books the difference to what the books already hold. Press it on a day the books already agree, and nothing is booked at all.

Small things about sick days and vacation

  • The database change was read three times before it went in. The first read found that the liability counted an account's balance its own way, which could disagree with the ledger right after an import. Now it asks the ledger.
  • The same read pointed out that days could be settled out of order, pulling the ground from under a later run. Now days go in order, and a run is taken back only while no later run built on it.
  • The pages were read twice. The useful finds: a person employed for years before OScar would have looked like they had five years of untaken vacation, a sickness that came back after day fourteen made no reminder, and pressing "book" twice could leave a stray document behind. All fixed before anything shipped.
  • Over 1,600 checks of the books' database pass, 37 of them new for these days away.
  • New Swedish words: frånvaro, sjukavdrag, karensavdrag, semestertillägg, semesterlöneskuld.

The pricing page, tidier

A small one from the side: on the pricing page, the plan cards' points now read as a proper list, with a long point's second line starting under its words and not under the tick. The points were reworded too, and the two cards grew a little on a computer.

When the year ends with days left

Late at night came the last of the vacation rules: what happens to days nobody took. The Annual Leave Act says paid days that were neither taken nor saved are paid out within a month of the vacation year's end, but with a twist I only understood after reading the law's preparatory works. They are paid out only as far as they, together with the days just earned, pass 25. The rest move into the new year. The act's own example: someone was sick most of the year, has 25 days left and earned only 13 new ones. Thirteen are paid out and twelve move forward, so the new year starts with 25 again. The point is that a person back from a long absence still gets a real holiday, not just a payout.

OScar now does exactly that. The first pay run after 31 March pays out the days that are due on its own, and a task in Tasks says "pay out by 30 April". The days that move forward are simply there in the new year, ready to be taken.

The last pay run

When someone leaves, what they earned and never took is paid out as holiday compensation: the paid days left, any saved days, and the days earned so far in the running year. It is paid once, in a run on or after their last day. The run form now offers that person on their own, with no salary row, and says why. After it, nothing more can be paid to them, which is exactly what you want from a final settlement. It is taxed as a one-off amount by Skatteverket's table, or at 30 percent if it is paid later than the month after their last regular pay.

The twelve percent rule

A monthly salary normally follows the same-pay rule. But the law sends some years to the twelve percent rule instead, for example when the year that earned the days held unpaid leave. Until tonight OScar refused those days with an apology. Now it works them out: twelve percent of the earning year's pay (vacation pay and sick pay left out, a normal day's pay counted for each sick day that counts), spread over the days the law gives the year. An employer can also choose the rule for a person with a switch on their form.

Read three times, and then three more

The database change behind this was read three times by a second reviewer before it went in, and each time they found something worth finding. Pay could still reach someone after their final settlement through a run dated before their last day. Two runs could end up holding each other so that neither could ever be taken back. And after a normal settlement, the person could no longer be saved at all. All fixed, and take-backs now follow the order runs were booked in, which makes that kind of knot impossible.

The pages were read three times too. The best catch: anything typed beside a final settlement made the month look like a regular pay month and quietly lost the 30 percent. Now everything paid after the end counts as final pay.

On the road: trips and drives

The last thing of the day was the one every small company meets sooner or later: someone goes to a customer in Göteborg for three days, or drives to Borås and back. Swedish rules let the employer pay a per diem and mileage tax free, up to Skatteverket's standard amounts, and anything above them is ordinary pay. I read the law first, and then found something better than any web page: Skatteverket publishes its own rules for a travel claim as files, one rule per situation, "applied from the tax year 2026". So OScar follows the same rules Skatteverket wrote down, not my reading of them.

On the Payroll page there is now a section, Trips and drives, with "Add a trip" and "Add a drive". A trip has where and why, when it left and when it came home, whether it had a night away, and for each day the country, the meals given and whether the company paid for that night's hotel. A drive has its day, the kilometres and the car. Each one waits for the person's next pay run, which settles it once. After that it can't be changed while the run stands.

What a day is worth

In Sweden a whole day is 300 kronor in 2026, half a day 150. Leave before noon and the first day is whole, come home after seven in the evening and the last day is whole too. A night with no hotel paid gives another 150. Abroad, every country has its own amount, from Skatteverket's yearly list, which OScar keeps exactly as published: Germany is 760 kronor a day this year. A long assignment gets less: after three months at the same place a day is worth 70 percent, after two years 50. The rule files had a detail I would have missed: after those first three months, a half day gives nothing at all.

A trip without a night away gives no tax-free per diem. If the company pays something anyway, it is pay. Mileage needs no night away: 2.50 kronor a kilometre in your own car, less in a company car whose fuel you paid yourself, and from 1 July this year also a plug-in hybrid charged at work.

A meal counts twice

This one surprised me. When the company pays for your dinner on a trip, two things happen. The tax-free per diem goes down, by 35 percent of the day's amount for a lunch or a dinner and 20 for a breakfast. And the dinner is also a taxable benefit, worth 124 kronor, just like a free lunch at the office. A hotel breakfast included in the room price only lowers the per diem, and a meal included in a train ticket does neither. The form asks which kind each meal was, and OScar does the rest.

Four kinds of pay

To make room for all this, a payslip learned that not everything on it is cash. There's pay, which is taxed and paid out. There's a tax-free allowance, which is paid out but never taxed. There's a benefit, which is taxed and carries the employer's contributions but is never paid out, and never booked again either, because the company booked what it cost when it bought it. And, ready for next time, there's what a person pays for a benefit out of their net pay. The tax is still taken from the cash only. If a benefit is so large that there isn't enough cash to take the tax from, the payslip says how much the person will settle with their final tax.

The employer return follows along. Tax-free per diem and mileage are just ticked, as Skatteverket wants, and the meal benefit gets its own box. Each trip also gets a travel claim as a PDF, with everything Skatteverket says the employer's record should hold.

Small things about trips

  • The database change was read twice by a second reviewer, who tried hundreds of wrong inputs against a copy of the whole database. Nothing serious, and the three small finds worth fixing were fixed before it went in. The main rule it holds: every tax-free krona on a payslip belongs to a trip.
  • The pages were read twice too, and the first read found a good one. Booking only compared the totals with what the screen had shown, so a trip changed in another tab to a country with the same daily amount would have been booked unseen. Now the booking checks every line of what you saw.
  • Over 1,700 checks of the books' database pass, 40 of them new for trips.
  • New Swedish words: tjänsteresa, traktamente, nattraktamente, bilersättning, kostförmån, reseräkning.

A car, a lunch and a tank of fuel

The last unit of the day was the rest of the benefits, and I wasn't even at the computer: I left for a few hours and asked for the decisions to be taken on my behalf, written down so I can undo any of them. So I came back to a list of thirteen decisions to read, not thirteen questions to answer.

The Payroll page has a new section, Benefits. A benefit there stands month after month: a company car, a flat, a parking space, anything the company gives that costs the person less than it's worth. A car gets the value a month that Skatteverket's own car benefit calculator gives for its model. OScar doesn't try to work that out itself, because the new-car prices behind it aren't public data. There's a switch for the 75 percent a car gets when the person drives at least 3,000 mil in the service in a year, and a field for what the person pays for it out of their net pay.

Every pay run then carries every benefit that stands in its month, and a part of a month counts as the whole month, the way Skatteverket counts it. Once a month has been paid it stays as it was booked: you can't add a benefit to it afterwards, or move a person's start date so it loses one. A car that has been carried can only change its end date. To change its value, you end it and add a new one from the next month.

The 1,2 that isn't charged

Reading Skatteverket's page on fuel turned up the detail that shaped the whole unit. When the company pays for the fuel of a benefit car's private driving, the person is taxed on the market value times 1,2. The employer's contributions, though, are charged on the market value alone. The law that sets the contributions says it in one short line. So the payslip learned a fifth kind of row: taxed, but not charged. Fuel now goes on the slip as its market value plus 20 percent for the tax only, and the contributions leave that part out. It's typed on the pay run, as the fuel of the month before, because Skatteverket takes fuel the month after it's tanked.

Meals at work go on the run too: so many breakfasts, lunches and dinners at this year's values (62 and 124 kronor), less what the person paid at the till. Coffee and fruit, staff parties and internal representation are no benefit, and the form says so.

The employer return got its boxes. Other benefits are summed in one box, a home ticks whether it's in a small house or not, the car is written less what the person paid (even when that leaves zero, as Skatteverket asks), and fuel is written in full beside what was paid for it. A person with nothing to report, someone who paid in full for a benefit and was paid nothing else that month, is simply left out of the file instead of stopping it. The files the test run downloaded passed Skatteverket's own schema.

Small things about benefits

  • The database change was read twice by a second reviewer, who ran about sixty sequences of presses against a copy of the whole database. One find was a car that, once its person's start date had moved, could never be ended. Another: someone with so many benefits that no payslip could carry them all. Both are fixed, and a person now has at most ten at a time.
  • The code was read twice too, and the first read said "don't ship". Fuel could be taxed with its 20 percent when no car stood that month (move the pay day past the car's end and it slipped through), and a benefit typed on someone's last pay run counted towards their holiday pay. Both are fixed, each with a test.
  • The test run on a local copy of the app found one of mine: a field's name inside it ("Value a month, from Skatteverket's …") was so long it left no room to type the value. The names are short now, and the test run measures the fields.
  • The housing value tables wouldn't open for the fetch, so a home's value is typed for now, from the tables.
  • All 1,784 checks of the books' database pass, and 206 security checks that one account can't see another's rows, the two new tables included.
  • New Swedish words: förmåner, bilförmån, drivmedel vid bilförmån, bostadsförmån, kostförmån på arbetet, nettolöneavdrag.

That completes the benefits. Next for payroll: 2027's tax tables, once Skatteverket publishes them this month.

  • changelog
  • oscar
  • bookkeeping
  • payroll
  • benefits
  • pricing