This library is meant to provide efficient analysis of business processes including:
- Finding the break even point of different processes using its fixed and variable costs.
- To be determined.
- To be determined.
Primary class to find the break even point between two processes. This class omits getter methods but allows the use of properties. Setter methods are included and multiple ways of constructing the object are also available.
The constructor method has its default variables set to 0 in the case of fixed1
and fixed2
and [0]
in the case of variable1
and variable2
.
Example of default construction:
# Create blank breakEven object
import processCalculator
be = processCalculator.breakEven.breakEven()
The default values of the object can be changed by changing the constructor arguments. Fixed cost arguments are float
data types while variable
cost arguments can be either of type float
or type list
.
Example of custom construction:
#Create custom breakEven object
import processCalculator
#Single value variable costs
be = processCalculator.breakEven.breakEven(
fixed1 = 22.34 #represents process 1 having a fixed cost of 22.34
variable1 = 2.30 #represents process 1 having a variable cost of 2.30
fixed2 = 25.20 #represents process 2 having a variable cost of 25.20
variable2 = 1.30 #represents process 2 having a variable cost of 1.30
)
#Multiple value variable costs
be2 = processCalculator.breakEven.breakEven(
fixed1 = 22.34 #represents process 1 having a fixed cost of 22.34
variable1 = [2.30, 1.20] #represents process 1 having multiple variable costs
fixed2 = 25.20 #represents process 2 having a variable cost of 25.20
variable2 = [1.30, 3.20] #represents process 2 having multiple variable costs
)
To calculate the simple break even point of two processes, make sure the object is set and then call the '.calc_simple_be' method.
Example of '.calc_simple_be':
from processcalculator import SimpleBreakEven
def main():
# Create object
be = SimpleBreakEven.SimpleBreakEven()
# Set attributes
be.fixed1 = 10.00
be.fixed2 = 12.00
be.variable1 = [2, 3, 4]
be.variable2 = [2, 4, 5]
# Calculate break even point
be_point = be.calc_simple_be()
print(f'The break even point is: {be_point}')