Controller not working in Angular JS

OK. But why the calcultion in the controller is never executed even after taking the inputs? Should we use controller for only initializing the data and place the logic part in the functions?