calculate ohm's law based on these values