math works for receipt printer