I'm unable to convert this into code and I cannot use numpy/pandas. math equation Can someone help me out? Thanks!