Planning savings and investments together can save thousands