Days to live: Another way of looking at finances
C Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
Makefile
README.md
daystolive.c

README.md

daystolive: How many days do you have left to live? (Financial calculator)

We're all going to die some day. But are you going to run out of money before then?

Instead of looking at finances as complicated budgeting, you can look at your liquid assets and determine how long you can go without working for.

This program puts a few files in ~/.daystolive/. You may want to back it up. Cost per day defaults to 50 ($50, 50BTC, 50 Euros, whatever you want it to be).

$ daystolive +1000 "$1,000  to my name."
1000
$ daystolive /100 "I spend about a hundred bucks a day."
10
$ daystolive = You can write comments just about any way you\ like. It\'s\ potentially useful.
10
$ daystolive -30 Nice brunch date in the morning.
9
$ daystolive -3 Small snack for lunch.
9
$ daystolive -30 Gas.
9
$ daystolive -100 Hotel.
8
$ daystolive -7 Breakfast.
8
$ daystolive -10 Lunch.
8
$ daystolive -500 "PS4!"
3
$ daystolive -5 "Small dinner. I think I'm running out of money!"
3
$ daystolive 400 "Sell PS4."
Invalid operator.
$ daystolive +400 "Sell PS4."
7
$ daystolive +100 "Do Craigslist work."
8
$ daystolive +10 "Mow my parnet's lawn."
8
$ daystolive +1 "Beg for money on the street."
8
$ daystolive -100 "Eat delicious food."
7
$ daystolive +1000 "Sell my car"
17
$ daystolive +100000 "Sell my kidney."
1017
$ daystolive -100000 "Blow it all in Vegas."
17
$ daystolive -1 "Chewing gum."              
17
$ daystolive /50 "I think I should spend less every day. How far do I get?"
34
$ cat ~/.daystolive/history # Where did all my money go?
+1000 ,000  to my name. : Wed Nov 30 23:46:26 2016
/100 I spend about a hundred bucks a day. : Wed Nov 30 23:46:36 2016
= You can write comments just about any way you like. It's potentially useful. : Wed Nov 30 23:47:11 2016
-30 Nice brunch date in the morning. : Wed Nov 30 23:47:35 2016
-3 Small snack for lunch. : Wed Nov 30 23:47:42 2016
-30 Gas. : Wed Nov 30 23:48:33 2016
-100 Hotel. : Wed Nov 30 23:48:37 2016
-7 Breakfast. : Wed Nov 30 23:48:46 2016
-10 Lunch. : Wed Nov 30 23:49:07 2016
-500 PS4! : Wed Nov 30 23:49:20 2016
-5 Small dinner. I think I'm running out of money! : Wed Nov 30 23:49:31 2016
+400 Sell PS4. : Wed Nov 30 23:49:45 2016
+100 Do Craigslist work. : Wed Nov 30 23:49:58 2016
+10 Mow my parnet's lawn. : Wed Nov 30 23:50:11 2016
+1 Beg for money on the street. : Wed Nov 30 23:50:37 2016
-100 Eat delicious food. : Wed Nov 30 23:50:54 2016
+1000 Sell my car : Wed Nov 30 23:51:06 2016
+100000 Sell my kidney. : Wed Nov 30 23:51:17 2016
-100000 Blow it all in Vegas. : Wed Nov 30 23:51:29 2016
-1 Chewing gum. : Wed Nov 30 23:51:39 2016
/50 I think I should spend less every day. How far do I get? : Wed Nov 30 23:51:52 2016

Building and installing

$ make

# make install

License

Unlicense/Public domain