A Model for Measuring Financial Risks