Is Q from 90 degree or Q distance is from where P ends?
Sorry, but what do you mean? Maybe a diagram might explain your actual question better.