legit d computation