Heh I worked one of these. We handled arithmetic in the DB tho. Lot of PL/pgSQL running under the typescript, TS was more of like a middleware or API layer for things that could change more frequently. Finance code is to some extent transcribing of regulation & law into code and we kept all that in postgres.