Handrail support at corner

I don't remember how I figured out the angles for this.