ChatGPT is really a game of language. I've had to come up with more than 10 different ways of explaining to come to a correct formula that does what I want. Obviously I am not the best english writer as it's not my main language and perhaps better writing would make it easier.