DMG How do you calculate the offensive CR of an ability?

Monster Knowledge DC