Still, when I ask how long it takes for a photon to get from a star to a planet, 30 million light years away. The same formula should work, that we use to determine how long the photon takes to get from the sun to this planet. What difference does it make about frame of reference? The photon is not in a ship, it is just traveling at the speed of light in both cases.
We have a constant speed of light in both cases , and an actual physical distance.
The measurement that the star is 30 million light years away is from a particular reference frame.
In a reference frame of a spacecraft moving toward the star from the Earth at 86% of c, the measured distance between the Earth and that star will be 15 million light years. And in *that* frame, the light will take 15 million years to travel that distance.
The distances and the times depend on the specific frame of reference in which the measurements are done.
But, in all frames of reference, the speed of light will have the same value: c.