Each party makes the card-points in tricks won plus 5 points for every trick. If declarer's party is successful, they score what they made, or 330 points (or what they bid multiplied by 2, in another variant of the game) if they win all tricks (i.e., achieve a shelem or slam). If they are not successful, they lose what they bid, doubled if they make less than their opponents (or less than half of what they bid, in some variants). The opponents always score precisely what they made. There's no penalty for scoring points above the bid amount. In the shelem/slam case, the other form of scoring is that the declarer's party score what they bid, and the opponent lose exactly the same points.