Can you help me minimise this function?

Printable View