Add function to change planning value; fix calculating of total amounts