Method and apparatus for calculating the composition of a formulation for treating hair fibers. The method includes obtaining a target specification (330), the target specification including one or more numerical parameters that define a desired appearance of the hair fiber, the step, the composition of the formulation, and the formulation Providing a first calculation model (340) that relates to the expected appearance of the hair fiber when processed by the method, and using the first calculation model and the target specification, the hair fiber is treated with the formulation. If so, calculating (350) the composition of the formulation expected to produce an appearance that is similar or similar to the desired appearance.毛髪繊維を処理するための製剤の組成を計算するための方法及び装置。この方法は、目標仕様を取得するステップ(330)であって、目標仕様は、毛髪繊維の所望の外観を定義する1つ以上の数値パラメータを含む、該ステップと、製剤の組成を、その製剤によって処理されたときの毛髪繊維の予測される外観に関係付ける、第1の計算モデルを提供するステップ(340)と、第1の計算モデル及び目標仕様を使用して、毛髪繊維が製剤で処理される場合に、所望の外観に類似又は同様の外観を生成することが予測される製剤の組成を計算するステップ(350)と、を含む。