A new calculation technique of muonium formation rate