how to save tax by investing