Bd & m calculation works