draftply Download

Monthly Budget Breakdown

← All samples

budget-breakdown.dplyEditor
1---
2version: 0.1.0
3precision: 2
4form_title: Monthly Budget Breakdown
5form_description: Where does your money actually go? Enter your monthly categories and see the split as a pie chart — the category names become the slice labels, no separate labels list needed.
6form_inputs: Rent|rent{€}, Groceries|groceries{€}, Transport|transport{€}, Insurance|insurance{€}, Leisure|leisure{€}, Savings|savings{€}
7form_outputs: Total monthly spend|total, Largest single expense|largest
8form_plots: 1
9---
10# draftply Pro — Monthly Budget Breakdown
11# "Where does my money actually go?" A named list turns straight into a pie
12# chart: its keys become the slice labels, its values the slice sizes — one
13# argument, no separate labels list. This notebook also has a FORM (Pro):
14# tap the form icon for an input mask with the chart built in.
15
16rent = 900
17groceries = 320
18transport = 140
19insurance = 95
20leisure = 180
21savings = 300
22
23total = rent + groceries + transport + insurance + leisure + savings
24"Total monthly spend": total
25
26budget = [
27 "Rent": rent,
28 "Groceries": groceries,
29 "Transport": transport,
30 "Insurance": insurance,
31 "Leisure": leisure,
32 "Savings": savings
33]
34
35largest = max(budget)
36"Largest single expense (€)": largest
37"Rent's share of the total (%)": rent / total * 100
38
39pie(budget, "Monthly Budget")
40