I have a point feature class and a polygon feature class, and each point is located within one polygon. Is there a way to **programmatically** calculate the distance from each point to the farthest location on its containing polygon's edge (see example below)?

I have an ArcGIS Desktop basic licence.

[![Example](https://i.stack.imgur.com/jUSQC.png)](https://i.stack.imgur.com/jUSQC.png)