First you have to remove the damaged floor material, add the framing as needed, then measure, cut, and fasten new plywood.