Struggling with forms and Dynamic Form Rules.

Problem:

I have one field called as 'TotalBaselineExpense'

I have 4 fields related to this field, they are namely: Q1Expense, Q2Expense, Q3Expense, Q4Expense (for simplicity lets call them q1,q2,q3,q4).

On the form, as soon as a value is entered in TotalBaselineExpense, the value of q1=totalExpense/4. Similarly, q2,q3,and q4 should also become totalBaselineExpense/4.

Also, if the value of TotalBaselineExpense changes, the value of q1,q2,q3,q4 need to change accordingly.

In addition to this, I want the user to be able to edit q1,q2,q3,q4. and their total may not be equal to totalBaselineExpense. (hence, I cannot make them a formula fields)

I am struggling to achieve this.. Any help is appreciated??

Problem:

I have one field called as 'TotalBaselineExpense'

I have 4 fields related to this field, they are namely: Q1Expense, Q2Expense, Q3Expense, Q4Expense (for simplicity lets call them q1,q2,q3,q4).

On the form, as soon as a value is entered in TotalBaselineExpense, the value of q1=totalExpense/4. Similarly, q2,q3,and q4 should also become totalBaselineExpense/4.

Also, if the value of TotalBaselineExpense changes, the value of q1,q2,q3,q4 need to change accordingly.

In addition to this, I want the user to be able to edit q1,q2,q3,q4. and their total may not be equal to totalBaselineExpense. (hence, I cannot make them a formula fields)

I am struggling to achieve this.. Any help is appreciated??