The code below (I found from googling) does the trick in terms of outcome. What I need to work out is the formula for this, so for any Y point we can get corresponding X.
This is part of a larger calculation using binned data Y to attribute time savings X.
Any help much appreciated.

