Far from sure about this, but a formula that does exactly what you'd expect for proximity damage is:
base * (1 - distance/max_distance)^x
Where the x determines how quickly the damage will drop.