The Mass of KOI-94d and a Relation for Planet Radius, Mass, and Incident Flux