this works good. thank you.

but how can i input using textboxes instead typing in M2, M3, M4, and M5.