basic metrics calculation based on static variables