[FE] Logic for COCO & Pascal + Calculation