This is a simple script that asks you for a savings goal and a deadline. It then calculates how much money you need to save per day to reach your goal, and then schedules withdrawals from one of your Dwolla funding sources. It aims to be a "set and forget" way to save money.
The script requires that you have Ruby and the following gems installed:
- iron_worker_ng
- typhoeus
- chronic
- json
You'll also need to acquire a Dwolla API token for your account. You can do that here.
Simply download the files attached to this gist, change the values in iron.json to reflect your account details, and then run ruby save_money.rb
from where you downloaded the files. Output is as follows:
$ ruby save_money.rb
How much would you like to save?
329
When is your deadline?
Jan 1
You need to save $14.95 a day in order to meet your goal of $329.0 by Tuesday January 01.
When would you like the first withdrawal to be made? Subsequent withdrawals will be made every 24 hours for the following 22 days.
in thirty seconds
What is your Dwolla API token?
[REDACTED]
What is your Dwolla PIN?
[REDACTED]
You have the following funding sources:
1. Chase - Checking
Enter the number for the funding source you'd like to use:
1
Great! You're all set. You should have $329.0 in your Dwolla account a few days after Tuesday January 01. (It sometimes takes a few business days for all your deposits to clear.)
If you need help, feel free to tweet me @dstaley.