Adjust the P-L relation using the slider on the right. The absolute magnitude for Log P=0 is given on the left. Use that and the apparent magnitude at Log P=0 (red line) to get the distance to the galaxy.