HP Forums
(15C) Pricing Program - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (15C) Pricing Program (/thread-5200.html)



(15C) Pricing Program - Dwight Sturrock - 11-24-2015 03:56 AM

15c pricing program
A pricing program for small businesses that build custom projects.

Pricing Program:
STACK REGISTERS USED:
T=PROJECT DAYS;
Z= MATERIAL COST;
Y=ADDITIONAL LABOR;
X= % PROFITABILITY

Code:

LBL E
ROLL DOWN
+         //ADD M & L
X<>Y     //EXCHANGE (M+L) WITH DAYS
605     //DAILY OVERHEAD VALUE
*         //MULTIPLY DAYS WITH DAILY OVERHEAD
+         //ADD (M+L) + (605*D)
X<>Y     //EXCHANGE % PROFIT WITH (M+L) + (605*D)
CHS
100     
+         //SUBTRACT PROFIT FROM 100 TO FIND DIFFERENCE
.01     //CONVERT FROM % TO DECIMAL
*         //CONVERT FROM % TO DECIMAL
/         //DIVIDE TO FIND SELLING PRICE
RTN

Example:

A deck will take 5 days to build. Materials will cost $3500. The owner's salary is part of the overhead (hard coded into the program) but an additional carpenter will cost $1000. The desired profit margin is 15%.

5
Enter
3500
Enter
1000
Enter
15
f E

The selling cost is $8852.94


RE: HP 15C: Pricing Program - Thomas Klemm - 11-24-2015 01:15 PM

Using the % function makes it a little shorter:

Code:
LBL E
ROLL DOWN
+         //ADD M & L
X<>Y     //EXCHANGE (M+L) WITH DAYS
605     //DAILY OVERHEAD VALUE
*         //MULTIPLY DAYS WITH DAILY OVERHEAD
+         //ADD (M+L) + (605*D)
1
ROLL UP
%         //CONVERT FROM % TO DECIMAL
-         //SUBTRACT PROFIT FROM 1 TO FIND DIFFERENCE
/         //DIVIDE TO FIND SELLING PRICE
RTN

Cheers
Thomas