Removed unused directives
Added simple calculation