How are yearly and weekly spending goals calculated?