Need help with custom quantity and calculation