How to convert weapon damage to 270 power

Due to the fact that the same damage multiplier is applied to all guns for PvP and weapon perks are not active, this means that rarity of the weapon is irrelevant for PvP, so I have been leveling a new alt character and logging every single weapon that I've been coming across and there are some very weird finds. Some common weapons like the Tyrell have better stats than the epic Tyrell II. Nothing I've found would give a huge advantage in PvP, but I've still found a handful of common weapons with better stats than their epic counterparts. In going through this exercise, I had to figure out the formula for converting base damage of weapons at their current power level to the damage they would do at power level 270, since I already know how to convert damage at power level 270 to base damage in PvP. That being said, I wanted to share that formula with the community for any fellow spreadsheeters out there.

Damage at power level 270 = Damage per hit @ current power level / (1 - (0.0034090909*(270 - current power level)))

Round the result to the nearest decimal place and you have the damage at power level 270 to within a 0.2 damage margin of error, which doesn't really impact the base damage calculation for PvP from what I've seen.