Rectangle wrong answer

can anyone see why my code is getting wa in all cases https://paste.ubuntu.com/p/Mg43pPmsqV/