The topic PM Condition based, due date calculation is closed but I have a contribution.
I had already researched this subject and realized that there is a lot of misinformation here in the community. Another customer asked again and I found the file below. It doesn't detail the calculation but defines the main concepts involved.
This is my contribution to this topic and I hope it helps others.