pulseenergy / vacation

Handy little app to help you keep track of your accumulated and remaining vacation days.
GNU General Public License v2.0
5 stars 2 forks source link

Different output when future contains vacation days #7

Open nicwaller opened 9 years ago

nicwaller commented 9 years ago

If I plan to take some vacation days in the future then run vacation the output does not produce the expected value. It adds up the accrued days until today, but also subtracts future planned days, producing a number of available days that isn't correct for either today or the final date.

Steps to reproduce

echo "2015-01-01: days 0.0" > ~/.vacationrc
echo "2015-01-01: rate 15.0" >> ~/.vacationrc
echo "2017-01-01: off" >> ~/.vacationrc
vacation

Actual results

vacation
12.4 vacation days remaining

Expected results

vacation
13.4 vacation days remaining
1 planned vacation days:
  2017-01-01