Change calculation functional.