Calculate if where is variable, and and are constant.