Can you help find a bug in this code? It doesn’t look accurate.