Stuck.

Let me know if I'm going the wrong direction. I'm having a hard time conceptualizing the math implementation.
Thanks!