custom metric thread calculator