The basic ROI formula
ROI = (organic-attributed revenue − fully-loaded SEO investment) / SEO investment.
The two hard inputs are organic-attributed revenue (which attribution model do you use?) and fully-loaded investment (what counts as SEO cost?). Get those two right and the math is straightforward.