Set door frame

Hello i need your help to fix point set door frame by to condition wall host and room wall finish for each door ; my difficultis to add possibtiltes depending on room wall finish types to door -from room interior offset - to room exterior offset for frame thank youdoor-frame calcuation.dyn (45.5 KB)

this what i need to add as possibilties