I tried to implement it using it\'s equation, but their is an error That is "cannot convert float Nan to integer". I think I wrote equation right but I don\'t know