Use the sliders to input the variables, and click the buttons for the desired option. Same Type Attack Bonus: On if the attacker is using a move of its type, off otherwise. "Weakness" in the other button refers to the pokemon taking an attack being weak to it's type. Power is in the move's description.
Serebii.net - Damage formula.