Pattern-printing Price Calculator