I don't know what's with the MOD function returning what it does for 30% so I've altered the CF formula to an alternative way to find the MOD in the attached.
If you want me to explore a DAX solution attach a file with something in the Data Model or a PowerBI file which your picture seems it might be from.