calculation pretty output