SDE calculation