fixed 'savings' logic