Costcalculator: BatchPCB don't round up anymore

Forum Administrative - NOT PROJECT OR "HELP"

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
henman
 
Posts: 2
Joined: Mon Apr 13, 2009 3:39 pm

Costcalculator: BatchPCB don't round up anymore

Post by henman »

Looks like BatchPCB does not round up the board design to the next inch but charges exactly by the size with a minimum size of 1inch.
( see 'news' section from March 16 http://batchpcb.com/ )

So calculation for batchpcb would be now:

Code: Select all

--- costcalc.html       2009-03-09 11:39:18.000000000 -0700
+++ costcalc-1.html     2009-04-13 12:27:24.000000000 -0700
@@ -54,7 +54,8 @@
  form.barebonestotal.value = 20 + cost;
 }
 function calcbatchpcb(pcbsize, pcbnum, form) {
- cost = pcbnum*2.5*(pcbsize+1)+10;
+ if (pcbsize < 1) pcbsize = 1;
+ cost = pcbnum*2.5*pcbsize+10;
  form.batchpcbnum.value = pcbnum;
  form.batchpcbcostper.value = cost/pcbnum;
  form.batchpcbcost.value = cost;

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Costcalculator: BatchPCB don't round up anymore

Post by adafruit »

thanks! i've updated it :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Administrative (closed)”