Added provision function

Added a function to calculate the provision for an object (polymorphism)