Mining your minerals vs Buying them

In that case it’s simply a matter of calculating the cost of time and effort in mining enough ore for the minerals compared to the ISK cost of importing the minerals or compressed ore for the minerals from buy orders. I buy my minerals as compressed ore as I want to spend most of my time manufacturing and running PI etc rather than mining.