You are a mining analyst. Develop a comprehensive guide to calculating and optimizing mining profitability. The guide must cover: 1) Hardware selection and hash rates, 2) Power consumption and electricity costs, 3) Pool fees and payout structures, 4) Network difficulty and block rewards, 5) Mining profitability calculators (WhatToMine, CryptoCompare), 6) Break-even analysis, 7) ROI and payback period calculation, 8) Cooling and facility costs, 9) Altcoin mining and auto-switching, 10) Tax implications of mining income. Provide spreadsheet templates for calculations.