adamcaron / finance_tracker

0 stars 0 forks source link

User Story: #5

Open adamcaron opened 8 years ago

adamcaron commented 8 years ago

It's Thursday Aug 11, 2016 and my bank account and credit card accounts are in a particular state. I want to buy a $200 ticket to an event in Boulder before Aug 15th but first I have to transfer money from my checking account to my cc account to cover the ticket cost. Given my bills and upcoming financial obligations, how much should I transfer and can I but the ticket now?

adamcaron commented 8 years ago

see finance-tracker.numbers spreadsheet for pain point and limitations.

adamcaron commented 7 years ago

Note this example in Go to determine when the next pay day is:

package main

import (
    "fmt"
    "time"
)

func main() {
    fmt.Println("When's Saturday?")
    today := time.Now().Weekday()
    switch time.Saturday {
    case today + 0:
        fmt.Println("Today.")
    case today + 1:
        fmt.Println("Tomorrow.")
    case today + 2:
        fmt.Println("In two days.")
    default:
        fmt.Println("Too far away.")
    }
}