Change sin calculation