Calculate phases from measures