fe1fed97c58a5e0e7ad869e4e8d15babbf119992
Add calculated values for gross_profit_margin, operating_margin, and other_operating_expenses to provide more comprehensive financial data matching fiscal.ai methodology. Implementation: - Add calculate_gross_profit_margin() function for (Gross Profit / Revenue) × 100 - Add calculate_operating_margin() function for (Operating Profit / Revenue) × 100 - Add calculate_other_operating_expenses() to derive from components - Include comprehensive unit tests with edge case coverage Safety features: - Null propagation using ? operator for missing data - Division protection with f64::EPSILON checks - Proper handling of negative values (losses) - Semantic distinction between Some(0.0) and None Validation: MSFT FY2024 data shows 68.8% gross margin and 45.6% operating margin, matching fiscal.ai calculations. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Description
No description provided
Languages
Rust
58%
TypeScript
41.4%
CSS
0.5%