calculating solar current