Material Selection Digital Logic Formula