Debt Pay Down Database

Hi everyone! Like most here, I’m brand spanking new to Coda and am trying my hand to convert from Notion. I like Coda because I understand it’s formula centric but am not sure how to create the formula I’m seeking. Maybe someone with some experience can help me.

Here’s what I’m trying to do. I have created a database complete with all of my debts, when they’re due, how much is owed, a debt category (credit card, loan, et al), the name of the creditor and a bit more. What I want to do is enter an amount (a credit or a charge) and have that amount add to or deduct from the balance as well as records the date/time that it occurred. While I could do this in spreadsheet form, I don’t want that. I want a page that shows at-a-glance my debts that has a “widget” style form that records the payments/credits and charges.

Make sense? So, how do I do this? :slight_smile:

hi @PlaidPixels, Welcome to the community and thx for the interesting question.

I start with a possible part of the answer, to proceed you might want to add a sample doc with some fake data. How to share a doc, please check here

This is a set up I created with a button a as a starter. It does not deal yet with calculations. The important aspect is the logic we follow. If you feel unhappy with the code I shared, don’t worry you can add this data manually as well.

I started with a table on the categories

Next a created a button that links to this table and a text box to create the table to work with:

and the code in this button you find below:

  Sequence(1,[DB Debt Category].Count()).FormulaMap(CurrentValue.WithName(Nbr_Debt_Cat, 
[DB Debt].AddRow(
 [DB Debt].Name, Format("{1} → {2} ",
   [DB Debt Category].Nth(Nbr_Debt_Cat)),
[DB Debt].Month,MonthNumber,
[DB Debt].MonthStart,Date(TB_DebtYears,MonthNumber,01),
[DB Debt].TheMonthName,Date(TB_DebtYears,MonthNumber,01).MonthName(),
[DB Debt].DebtCat,[DB Debt Category].Value.Nth(Nbr_Debt_Cat)

The main thing is as said before not what you see in the code (you can do this manually as well), it is about the structure that for each month you have debt categories and of course you can add more details per month.

This is the start, once we have this, we can start adding numbers and playing with it.

hope it helps, Cheers, Christiaan


Holy Moly, Christiaan…. that’s incredible and I have to figure out how you did that and where, well, to put it! LOL!

I’m quite grateful for the work you did and thank you immencely for it!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.